app-json_forms Schemas

On this page:

formSchema

{ "$id": "formSchema", "definitions": { "container": { "type": "object", "properties": { "type": { "type": "string" }, "title": { "type": "string", "examples": [ "Connection Information" ] }, "description": { "type": "string", "examples": [ "This form describes the connection information for a device." ] }, "required": { "type": "array", "items": { "type": "string" }, "examples": [ [ "kdWO-g4oS3GkzrbqDqCZUw" ] ] }, "properties": { "type": "object", "patternProperties": { ".*": { "anyOf": [ { "$ref": "#/definitions/container" }, { "$ref": "#/definitions/checkboxField" }, { "$ref": "#/definitions/numberField" }, { "$ref": "#/definitions/textField" }, { "$ref": "#/definitions/textareaField" }, { "$ref": "#/definitions/dropdownField" } ] } } }, "items": { "$ref": "#/definitions/tableItems" } }, "required": [ "type", "title", "description" ] }, "tableItems": { "type": "object", "properties": { "type": { "type": "string" }, "required": { "type": "array", "items": { "type": "string" } }, "properties": { "type": "object", "patternProperties": { ".*": { "anyOf": [ { "$ref": "#/definitions/container" }, { "$ref": "#/definitions/checkboxField" }, { "$ref": "#/definitions/numberField" }, { "$ref": "#/definitions/textField" }, { "$ref": "#/definitions/textareaField" }, { "$ref": "#/definitions/dropdownField" } ] } } } } }, "checkboxField": { "type": "object", "properties": { "type": { "type": "string", "const": "boolean" }, "title": { "type": "string", "examples": [ "Allow timeout" ] }, "description": { "type": "string", "examples": [ "Is a timeout allowed to pass this step?" ] }, "default": { "type": "boolean" }, "enum": { "type": "array", "items": { "type": "boolean" } } }, "required": [ "type", "title", "description" ] }, "numberField": { "type": "object", "properties": { "type": { "type": "string", "const": "number" }, "title": { "type": "string", "examples": [ "Retry attempts" ] }, "description": { "type": "string", "examples": [ "The number of connection retries before timing out." ] } }, "required": [ "type", "title", "description" ] }, "textField": { "type": "object", "properties": { "type": { "type": "string", "const": "string" }, "title": { "type": "string", "examples": [ "Device Name" ] }, "description": { "type": "string", "examples": [ "A unique name of the target device." ] }, "pattern": { "type": "string", "examples": [ "regex" ] } }, "required": [ "type", "title", "description" ] }, "textareaField": { "type": "object", "properties": { "type": { "type": "string" }, "title": { "type": "string", "examples": [ "Device Name" ] }, "description": { "type": "string", "examples": [ "A unique name of the target device." ] }, "pattern": { "type": "string", "examples": [ "regex" ] } }, "required": [ "type", "title", "description" ] }, "dropdownField": { "type": "object", "properties": { "type": { "type": "string", "const": "string" }, "title": { "type": "string", "examples": [ "Device Name" ] }, "description": { "type": "string", "examples": [ "A unique name of the target device." ] }, "enum": { "type": "array", "default": [] }, "pattern": { "type": "string", "examples": [ "regex" ] } }, "required": [ "type", "title", "description" ] } } }