{ "$id": "formSchema", "definitions": { "container": { "type": "object", "properties": { "type": { "type": "string", "const": "object" }, "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" } ] } } } }, "required": [ "type", "title", "description", "required", "properties" ], "additionalProperties": false }, "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?" ] } }, "required": [ "type", "title", "description" ], "additionalProperties": false }, "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" ], "additionalProperties": false }, "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." ] } }, "required": [ "type", "title", "description" ], "additionalProperties": false } } }