kconfig/assets/default.jcs

106 lines
2.1 KiB
Plaintext

{
"title": "Person",
"type": "object",
"id": "person",
"properties": {
"name": {
"type": "string",
"description": "First and Last name",
"minLength": 4
},
"age": {
"type": "integer",
"default": 21,
"minimum": 18,
"maximum": 99
},
"gender": {
"type": "string",
"enum": [
"male",
"female",
"other"
]
},
"location": {
"type": "object",
"title": "Location",
"properties": {
"city": {
"type": "string"
},
"state": {
"type": "string"
},
"citystate": {
"type": "string",
"description": "This is generated automatically from the previous two fields",
"template": "{{city}}, {{state}}",
"watch": {
"city": "person.location.city",
"state": "person.location.state"
}
}
}
},
"query": {
"type": "string",
"format": "sql",
"options": {
"ace": {
"theme": "ace/theme/monokai",
"tabSize": 2,
"useSoftTabs": true,
"wrap": true
}
}
},
"pets": {
"type": "array",
"format": "table",
"title": "Pets",
"uniqueItems": true,
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"cat",
"dog",
"bird",
"reptile",
"other"
],
"default": "dog"
},
"name": {
"type": "string"
},
"fixed": {
"type": "boolean",
"title": "spayed / neutered"
}
}
}
},
"cars": {
"type": "array",
"format": "tabs",
"title": "Cars",
"uniqueItems": false,
"items": {
"type": "object",
"title": "Car",
"properties": {
"manufacturer": {
"type": "string"
},
"model": {
"type": "string"
}
}
}
}
}
}