Skip to content

Instantly share code, notes, and snippets.

@ghalimi
Last active December 22, 2015 14:38
Show Gist options
  • Save ghalimi/6486822 to your computer and use it in GitHub Desktop.
Save ghalimi/6486822 to your computer and use it in GitHub Desktop.
Category Options Schema
{
"copyright": "© Sutoiku, Inc. 2013",
"title": "Category Options Schema",
"type": "object",
"properties": {
"stc_categories": {
"stc_datatype": "stc_json",
"stc_name": "Categories",
"stc_description": "Set of categories defined by the field.",
"stc_required": true,
"stc_advanced": false,
"stc_position": 1,
"stc_options": {
"stc_schema": {
"title": "Category Schema",
"type": "array",
"items": {
"type": "object",
"properties": {
"stc_name": {
"stc_datatype": "stc_string",
"stc_name": "Name",
"stc_description": "Name of the category.",
"stc_required": true,
"stc_advanced": false,
"stc_position": 1
},
"stc_identifier": {
"stc_datatype": "stc_identifier",
"stc_name": "Identifier",
"stc_description": "Unique identifier of the category.",
"stc_required": true,
"stc_advanced": false,
"stc_position": 2
},
"stc_color": {
"stc_datatype": "stc_color",
"stc_name": "Color",
"stc_description": "Color of the category.",
"stc_required": false,
"stc_advanced": true,
"stc_position": 3
},
"stc_icon": {
"stc_datatype": "stc_icon",
"stc_name": "Icon",
"stc_description": "Icon of the category.",
"stc_required": false,
"stc_advanced": true,
"stc_position": 4
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment