Skip to main content
Reads a JSON Schema object and returns the list of controls TapForm renders from it.

Parameters

schema

JsonSchema

Returns

TapFormField[]

Remarks

One field per declared property, in the order the schema lists them; a schema with no properties object returns an empty list, and a property that is not an object is skipped. An enum becomes a select and keeps only its string values; otherwise the kind comes from type — boolean, number and integer — and then from format, where textarea and date are recognised and anything else falls back to a single-line text control. Nested objects and arrays get a text control, so render those yourself. Call it when you want the fields without the form.

Example