Skip to content

Instantly share code, notes, and snippets.

@azenla
Last active October 27, 2015 18:50
Show Gist options
  • Save azenla/d069e30a554b31ae5a7a to your computer and use it in GitHub Desktop.
Save azenla/d069e30a554b31ae5a7a to your computer and use it in GitHub Desktop.
{
"people": { // This node does not have a value, but it's children can be a value, action, or plain node.
"$name": "People", // All nodes can have configs and attributes
"addPerson": { // This is can action which defines how to add a person.
"$name": "Add Person", // Defines a display name for this action.
"$invokable": "write", // Marks this as an action that requires write permission. This can also be 'read'.
},
"kaendfinger": { // Defines a child node.
"$name": "Kenneth Endfinger", // Display Name (In this case, the person's name) [Optional]
"age": { // Defines a value node.
"$type": "int", // This value's type.
"?value": 16, // The value of this node.
"@unit": "years old" // The unit for a value. [Optional]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment