Skip to content

Instantly share code, notes, and snippets.

@sqrtofsaturn
Last active June 10, 2016 18:58
Show Gist options
  • Save sqrtofsaturn/a73a799972daa81370e37ce30dfd7f94 to your computer and use it in GitHub Desktop.
Save sqrtofsaturn/a73a799972daa81370e37ce30dfd7f94 to your computer and use it in GitHub Desktop.
Device Schema - Meshblu v3.0.0-RC3 (Updated again [and again]...and once again])
{
"schemas": {
"version": "2.0.0",
"form": {
"configure": {
"my-default": {
"angular": {
"$ref": "http://somewhere/over/the/rainbow"
}
}
},
"message": {
"example-01": {
"angular": {
"schema": ["*"]
}
}
}
},
"configure": {
"my-default-config": {
"$ref": null,
"type": "object",
"properties": {
"options": {
"type" : "object",
"properties" : {
"example" : {
"type" : "string"
}
}
}
},
"x-form-schema": {
"angular": "configure.my-default.angular"
},
"x-group-name": "Configure Example Group"
}
},
"message": {
"example-message-01": {
"type": "object",
"properties": {
"example-opt": {
"type": "string"
},
"another-example-opt":{
"type": "string"
}
},
"x-form-schema": {
"angular": "message.example-01.angular"
},
"required": ["example-opt", "another-example-opt"]
},
"example-message-02": {
"type": "object",
"properties": {
"some-opt": {
"type": "string"
},
"another-some-opt":{
"type": "string"
}
},
"required": ["some-opt", "another-some-opt"]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment