angular2-json-schema-form
Version:
Angular 2 JSON Schema Form builder
55 lines (54 loc) • 1.07 kB
JSON
{
"JSONSchema": {
"definitions": {
"address": {
"type": "object",
"properties": {
"street_address": {
"type": "string"
},
"city": {
"type": "string"
},
"state": {
"type": "string"
}
},
"required": [
"street_address",
"city",
"state"
]
}
},
"type": "object",
"properties": {
"billing_address": {
"title": "Billing address",
"$ref": "#/definitions/address"
},
"shipping_address": {
"title": "Shipping address",
"$ref": "#/definitions/address"
}
}
},
"UISchema": {
"ui:order": [
"shipping_address",
"billing_address"
]
},
"formData": {
"billing_address": {
"street_address": "21, Jump Street",
"city": "Babel",
"state": "Neverland"
},
"shipping_address": {
"street_address": "221B, Baker Street",
"city": "London",
"state": "N/A"
}
}
}