angular2-json-schema-form
Version:
Angular 2 JSON Schema Form builder
58 lines (57 loc) • 1.01 kB
JSON
{
"JSONSchema": {
"title": "A registration form",
"type": "object",
"required": [
"firstName",
"lastName"
],
"properties": {
"password": {
"type": "string",
"title": "Password"
},
"lastName": {
"type": "string",
"title": "Last name"
},
"bio": {
"type": "string",
"title": "Bio"
},
"firstName": {
"type": "string",
"title": "First name"
},
"age": {
"type": "integer",
"title": "Age"
}
}
},
"UISchema": {
"ui:order": [
"firstName",
"lastName",
"age",
"bio",
"password"
],
"age": {
"ui:widget": "updown"
},
"bio": {
"ui:widget": "textarea"
},
"password": {
"ui:widget": "password"
}
},
"formData": {
"firstName": "Chuck",
"lastName": "Norris",
"age": 75,
"bio": "Roundhouse kicking asses since 1940",
"password": "noneed"
}
}