{ "$id": "formUISchema", "definitions": { "container": { "type": "object", "patternProperties": { ".*": { "anyOf": [ { "$ref": "#/definitions/container" }, { "$ref": "#/definitions/numberField" }, { "$ref": "#/definitions/textField" }, { "$ref": "#/definitions/textareaField" }, { "$ref": "#/definitions/dropdownField" } ] } } }, "numberField": { "type": "object", "properties": { "ui:placeholder": { "type": "string", "examples": [ "Enter connection retry attempt count" ] }, "ui:widget": { "type": "string", "const": "updown" } }, "required": [ "ui:widget" ], "additionalProperties": false }, "textField": { "type": "object", "properties": { "ui:placeholder": { "type": "string", "examples": [ "Enter the device's name" ] } }, "additionalProperties": false }, "textareaField": { "type": "object", "properties": { "ui:placeholder": { "type": "string", "examples": [ "Enter the device's config" ] }, "ui:widget": { "type": "string", "const": "textarea" } }, "additionalProperties": false }, "dropdownField": { "type": "object", "properties": { "ui:placeholder": { "type": "string", "examples": [ "Select device" ] } } }, "additionalProperties": false } }