@mistio/mist-form
Version:
A Webcomponent that renders a form defined by a JSONSchema & an optional UISchema spec
30 lines • 778 B
JSON
{
"jsonSchema": {
"title": "Add Secret",
"description": "Creates a new secret",
"type": "object",
"properties": {
"name": {
"type": "string",
"required": true
},
"payload": {
"title": "Secret Data",
"type": "string",
"required": true
}
}
},
"uiSchema": {
"payload": {
"ui:widget": "textarea",
"ui:placeholder": "{\"secret\": \"abc\"}",
"ui:options": {
"style": "font-family:monospace; font-size: 10px; width: 420px; min-height:200px; max-height:400px;"
}
}
},
"formData": {
"action": "upload"
}
}