@mistio/mist-form
Version:
A Webcomponent that renders a form defined by a JSONSchema & an optional UISchema spec
81 lines • 2.17 kB
JSON
{
"jsonSchema": {
"title": "Schema default properties",
"type": "object",
"properties": {
"valuesInFormData": {
"title": "Values in form data",
"$ref": "#/definitions/defaultsExample"
},
"noValuesInFormData": {
"title": "No values in form data",
"$ref": "#/definitions/defaultsExample"
}
},
"definitions": {
"defaultsExample": {
"type": "object",
"properties": {
"scalar": {
"title": "Scalar",
"type": "string",
"default": "scalar default"
},
"array": {
"title": "Array",
"type": "array",
"items": {
"type": "object",
"properties": {
"nested": {
"title": "Nested array",
"type": "string",
"default": "nested array default"
}
}
}
},
"object": {
"title": "Object",
"type": "object",
"properties": {
"nested": {
"title": "Nested object",
"type": "string",
"default": "nested object default"
}
}
}
}
}
}
},
"formData": {
"valuesInFormData": {
"scalar": "value",
"array": [
{
"nested": "nested array value"
}
],
"object": {
"nested": "nested object value"
}
},
"noValuesInFormData": {
"scalar": "scalar default",
"array": [
{
"nested": "nested array default"
},
{
"nested": "nested array default"
}
],
"object": {
"nested": "nested object default"
}
}
},
"uiSchema": {}
}