UNPKG

angular2-json-schema-form

Version:
49 lines (48 loc) 1.07 kB
{ "JSONSchema": { "title": "A registration form", "description": "A simple form example.", "type": "object", "required": [ "firstName", "lastName" ], "properties": { "firstName": { "type": "string", "title": "First name" }, "lastName": { "type": "string", "title": "Last name" }, "age": { "type": "integer", "title": "Age" }, "bio": { "type": "string", "title": "Bio" }, "password": { "type": "string", "title": "Password", "minLength": 3 } } }, "UISchema": { "firstName": { "ui:autofocus": true }, "age": { "ui:widget": "updown" }, "bio": { "ui:widget": "textarea" }, "password": { "ui:widget": "password", "ui:help": "Hint: Make it strong!" }, "date": { "ui:widget": "alt-datetime" } }, "formData": { "firstName": "Chuck", "lastName": "Norris", "age": 75, "bio": "Roundhouse kicking asses since 1940", "password": "noneed" } }