@maxhealth.tech/prefab / auto / JsonSchemaNode
Interface: JsonSchemaNode
Defined in: auto/schema.ts:45
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:46
format?
optional format?: string;Defined in: auto/schema.ts:47
title?
optional title?: string;Defined in: auto/schema.ts:48
description?
optional description?: string;Defined in: auto/schema.ts:49
enum?
optional enum?: unknown[];Defined in: auto/schema.ts:50
const?
optional const?: unknown;Defined in: auto/schema.ts:51
default?
optional default?: unknown;Defined in: auto/schema.ts:52
properties?
optional properties?: Record<string, JsonSchemaNode>;Defined in: auto/schema.ts:53
required?
optional required?: string[];Defined in: auto/schema.ts:54
items?
optional items?: JsonSchemaNode;Defined in: auto/schema.ts:55
anyOf?
optional anyOf?: JsonSchemaNode[];Defined in: auto/schema.ts:56
oneOf?
optional oneOf?: JsonSchemaNode[];Defined in: auto/schema.ts:57
minimum?
optional minimum?: number;Defined in: auto/schema.ts:58
maximum?
optional maximum?: number;Defined in: auto/schema.ts:59
minLength?
optional minLength?: number;Defined in: auto/schema.ts:60
maxLength?
optional maxLength?: number;Defined in: auto/schema.ts:61
minItems?
optional minItems?: number;Defined in: auto/schema.ts:62
maxItems?
optional maxItems?: number;Defined in: auto/schema.ts:63
readOnly?
optional readOnly?: boolean;Defined in: auto/schema.ts:64