Skip to content

@maxhealth.tech/prefab / auto / FieldsFromJsonSchemaOptions

Interface: FieldsFromJsonSchemaOptions ​

Defined in: auto/schema.ts:68

Properties ​

exclude? ​

ts
optional exclude?: string[];

Defined in: auto/schema.ts:70

Property names to leave out (server-managed keys, path params already known).


include? ​

ts
optional include?: string[];

Defined in: auto/schema.ts:75

Property names to keep, in this order. Anything else is dropped, and a name the schema does not declare is ignored rather than invented.


includeReadOnly? ​

ts
optional includeReadOnly?: boolean;

Defined in: auto/schema.ts:80

Emit a field for every property, including ones already marked readOnly: true in the schema.

Default ​

ts
false

Released under the MIT License.