UNPKG

@mistio/mist-form

Version:

A Webcomponent that renders a form defined by a JSONSchema & an optional UISchema spec

41 lines 953 B
{ "jsonSchema": { "title": "Contextualized errors", "type": "object", "properties": { "firstName": { "type": "string", "title": "First name", "minLength": 8, "pattern": "\\d+" }, "active": { "type": "boolean", "title": "Active" }, "skills": { "type": "array", "items": { "type": "string", "minLength": 5 } }, "multipleChoicesList": { "type": "array", "title": "Pick max two items", "uniqueItems": true, "maxItems": 2, "items": { "type": "string", "enum": [ "foo", "bar", "fuzz" ] } } } }, "uiSchema": {}, "formData": {} }