pl-api: fix pleroma config description schema
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@@ -6,7 +6,7 @@ import * as v from 'valibot';
|
||||
const pleromaConfigDescriptionChildSchema: v.GenericSchema<PleromaConfigDescriptionChild> =
|
||||
v.looseObject({
|
||||
key: v.optional(v.string()),
|
||||
type: v.union([v.string(), v.array(v.string())]),
|
||||
type: v.union([v.string(), v.array(v.union([v.string(), v.array(v.string())]))]),
|
||||
description: v.optional(v.string()),
|
||||
label: v.optional(v.string()),
|
||||
suggestions: v.optional(v.array(v.any())),
|
||||
@@ -38,12 +38,12 @@ type PleromaConfigDescription = v.InferOutput<typeof pleromaConfigDescriptionSch
|
||||
*/
|
||||
type PleromaConfigDescriptionChild = {
|
||||
key?: string;
|
||||
type: string | string[];
|
||||
type: string | Array<string | Array<string>>;
|
||||
description?: string;
|
||||
label?: string;
|
||||
suggestions?: unknown[];
|
||||
children?: PleromaConfigDescriptionChild[];
|
||||
group?: string | string[];
|
||||
suggestions?: Array<unknown>;
|
||||
children?: Array<PleromaConfigDescriptionChild>;
|
||||
group?: string | Array<string>;
|
||||
};
|
||||
|
||||
export {
|
||||
|
||||
Reference in New Issue
Block a user