Skip to content

@maxhealth.tech/prefab / auto / FieldsFromJsonSchemaOptions

Interface: FieldsFromJsonSchemaOptions

Defined in: auto/schema.ts:67

Properties

exclude?

ts
optional exclude?: string[];

Defined in: auto/schema.ts:69

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


include?

ts
optional include?: string[];

Defined in: auto/schema.ts:74

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:79

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

Default

ts
false

Released under the MIT License.