angular2-json-schema-form
Version:
Angular 2 JSON Schema Form builder
63 lines (62 loc) • 1.25 kB
JSON
{
"schema": {
"type": "object",
"title": "Complex Key Support",
"properties": {
"a[\"b\"].c": {
"type": "string"
},
"simple": {
"type": "object",
"properties": {
"prøp": {
"title": "UTF8 in both dot and bracket notation",
"type": "string"
}
}
},
"array-key": {
"type": "array",
"items": {
"type": "object",
"properties": {
"a'rr[\"l": {
"title": "Control Characters",
"type": "string"
},
"˙∆∂∞˚¬": {
"type": "string"
}
},
"required": [
"a'rr[\"l",
"˙∆∂∞˚¬"
]
}
}
}
},
"form": [
{
"type": "help",
"helpvalue": "Complex keys are supported in Angular 2."
},
"['a[\"b\"].c']",
{
"key": "array-key",
"items": [
"['array-key'][]['a'rr[\"l']",
{
"key": "['array-key'][]['˙∆∂∞˚¬']",
"title": "Unicode Characters"
}
]
},
{
"key": "simple",
"items": [
"simple.prøp"
]
}
]
}