@maxhealth.tech/prefab / auto / JsonSchemaNode
Interface: JsonSchemaNode
Defined in: auto/schema.ts:46
The JSON Schema keywords a form field can express, read structurally.
Deliberately not a full JSON Schema type: this reads schemas from anywhere (TypeBox, Zod, a hand-written spec, an OpenAPI document) and only the keywords below survive the crossing into a control.
Properties
type?
optional type?: string | string[];Defined in: auto/schema.ts:47
format?
optional format?: string;Defined in: auto/schema.ts:48
title?
optional title?: string;Defined in: auto/schema.ts:49
description?
optional description?: string;Defined in: auto/schema.ts:50
enum?
optional enum?: unknown[];Defined in: auto/schema.ts:51
const?
optional const?: unknown;Defined in: auto/schema.ts:52
default?
optional default?: unknown;Defined in: auto/schema.ts:53
properties?
optional properties?: Record<string, JsonSchemaNode>;Defined in: auto/schema.ts:54
required?
optional required?: string[];Defined in: auto/schema.ts:55
items?
optional items?: JsonSchemaNode;Defined in: auto/schema.ts:56
anyOf?
optional anyOf?: JsonSchemaNode[];Defined in: auto/schema.ts:57
oneOf?
optional oneOf?: JsonSchemaNode[];Defined in: auto/schema.ts:58
minimum?
optional minimum?: number;Defined in: auto/schema.ts:59
maximum?
optional maximum?: number;Defined in: auto/schema.ts:60
minLength?
optional minLength?: number;Defined in: auto/schema.ts:61
maxLength?
optional maxLength?: number;Defined in: auto/schema.ts:62
minItems?
optional minItems?: number;Defined in: auto/schema.ts:63
maxItems?
optional maxItems?: number;Defined in: auto/schema.ts:64
readOnly?
optional readOnly?: boolean;Defined in: auto/schema.ts:65