Reference Schemas FormField

Schema

FormField

object

Properties

id
string
label
string
name
string
options
array
type
string
validation
object

JSON Schema

{ "summary": "Field configuration for a Hyperstatic Form Field", "type": "object", "properties": { "id": { "type": "string" }, "label": { "type": "string" }, "name": { "type": "string" }, "options": { "type": "array", "items": { "oneOf": [ { "type": "string" }, { "type": "object", "properties": { "name": { "type": "string" }, "value": { "type": "string" } } } ] } }, "type": { "type": "string", "enum": [ "checkbox", "date", "email", "password", "phone", "radio", "range", "select", "text", "textarea", "url" ] }, "validation": { "type": "object", "properties": { "max": { "type": "number" }, "min": { "type": "number" }, "maxLength": { "type": "number" }, "minLength": { "type": "number" }, "pattern": { "type": "string" }, "required": { "type": "boolean" } } } } }