Skip to content

Instantly share code, notes, and snippets.

Created November 8, 2016 22:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/03ac9abce23259b329bb9319dd08bcf6 to your computer and use it in GitHub Desktop.
Save anonymous/03ac9abce23259b329bb9319dd08bcf6 to your computer and use it in GitHub Desktop.
A saved configuration for a schema form example, http://textalk.github.io/angular-schema-form/examples/bootstrap-example.html
[
{
"type": "help",
"helpvalue": "Complex keys are only supported with AngularJS version 1.3.x, see <a href=\"https://github.com/Textalk/angular-schema-form/blob/master/docs/knownlimitations.md\">known limitations</a> in the docs."
},
"title",
"preference",
{
"key": "shareholders",
"title": "Shareholders",
"items": [
{
"key": "name",
"title": "Shareholder name"
},
{
"key": "email",
"title": "Email address"
}
]
}
]
{
"array-key": [
{
"a'rr[\"l": "a",
"˙∆∂∞˚¬": "a"
},
{}
],
"simple": {
"prøp": "sasd"
},
"shareholder": [
{}
],
"title": "moo",
"shareholders": [
{},
{}
],
"preference": {
"preferred": true
},
"name": "James Skinner",
"email": "spiralx@gmail.com"
}
{
"type": "object",
"title": "Complex Key Support",
"properties": {
"title": {
"type": "string"
},
"preference": {
"type": "object",
"properties": {
"preferred": {
"type":"boolean"
},
"multiplier": {
"type": "number"
},
"required": [
"preferred"
]
}
},
"shareholders": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"title": "Shareholder name",
"type": "string"
},
"email": {
"title": "Email address",
"type": "string"
},
"required": [
"name",
"email"
]
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment