@morph-mapper/source / serializeSchema
Function: serializeSchema()
serializeSchema(
schema):Result<{config?:Record<string, {advanced?:boolean;childConfigurations?:string[];conditions?:Record<string,Record<string, {hasValue?:JsonValue; }>>;description?:string;hidden?:boolean;mutate: {body:string; };options:Record<string, {advanced?:boolean;conditions?:Record<string, {hasValue?: ... | ...; }>;default?:JsonValue;description:string;input:Input;options?: {required?:boolean; };placeholder?:string;selection?:object[];selectionDeclareVariable?:boolean;title:string;type:ZodDescriptor& ZodDescriptor | undefined; }>;title:string; }>;definition:SerializedSchemaMap;updateTemplateDiscardFields:string[]; },ParserError>
Defined in: serialize.ts:131
Parameters
schema
Returns
Result<{ config?: Record<string, { advanced?: boolean; childConfigurations?: string[]; conditions?: Record<string, Record<string, { hasValue?: JsonValue; }>>; description?: string; hidden?: boolean; mutate: { body: string; }; options: Record<string, { advanced?: boolean; conditions?: Record<string, { hasValue?: ... | ...; }>; default?: JsonValue; description: string; input: Input; options?: { required?: boolean; }; placeholder?: string; selection?: object[]; selectionDeclareVariable?: boolean; title: string; type: ZodDescriptor & ZodDescriptor | undefined; }>; title: string; }>; definition: SerializedSchemaMap; updateTemplateDiscardFields: string[]; }, ParserError>