Skip to content

Instantly share code, notes, and snippets.

@ghalimi
Last active Dec 25, 2015
Embed
What would you like to do?
{
"stc_schema": {
"copyright": "© Sutoiku, Inc. 2013",
"title": "JSON Schema Schema",
"type": "object",
"properties": {
"copyright": {
"stc_datatype": "stc_string",
"stc_name": "Copyright",
"stc_description": "Copyright of the JSON Schema.",
"stc_required": false,
"stc_advanced": false,
"stc_position": 1
},
"title": {
"stc_datatype": "stc_string",
"stc_name": "Title",
"stc_description": "Title of the JSON Schema.",
"stc_required": true,
"stc_advanced": false,
"stc_position": 2
},
"type": {
"stc_datatype": "stc_category",
"stc_name": "Type",
"stc_description": "Type of element.",
"stc_required": true,
"stc_advanced": false,
"stc_position": 3,
"stc_options": {
"stc_categories": [
{
"stc_name": "Array",
"stc_identifier": "array",
"stc_color": "#be0032",
"stc_icon": "icon-list-ul"
},
{
"stc_name": "Boolean",
"stc_identifier": "boolean",
"stc_color": "#f38400",
"stc_icon": "icon-check"
},
{
"stc_name": "Collection",
"stc_identifier": "collection",
"stc_color": "#f3c300",
"stc_icon": "icon-list-ol"
},
{
"stc_name": "Integer",
"stc_identifier": "integer",
"stc_color": "#8db600",
"stc_icon": "icon-stc-42"
},
{
"stc_name": "Number",
"stc_identifier": "number",
"stc_color": "#008856",
"stc_icon": "icon-stc-3-14"
},
{
"stc_name": "Null",
"stc_identifier": "null",
"stc_color": "#00a1c2",
"stc_icon": "stc-ascii-216"
},
{
"stc_name": "Object",
"stc_identifier": "object",
"stc_color": "#9065ca",
"stc_icon": "icon-di-letter-cube"
},
{
"stc_name": "String",
"stc_identifier": "string",
"stc_color": "#870074",
"stc_icon": "icon-stc-ab"
}
]
}
},
"items": {
"stc_datatype": "stc_json",
"stc_name": "Items",
"stc_description": "Items of the object.",
"stc_condition": "stc_schema.type = 'array'",
"stc_required": false,
"stc_advanced": false,
"stc_position": 4,
"stc_options": {
"stc_schema_schema": true
}
},
"properties": {
"stc_datatype": "stc_json",
"stc_name": "Properties",
"stc_description": "Properties of the object.",
"stc_condition": "stc_schema.type = 'object'",
"stc_required": false,
"stc_advanced": false,
"stc_position": 5,
"stc_options": {
"stc_schema": {
"title": "Properties Schema",
"type": "collection",
"properties": {
"stc_datatype": {
"stc_datatype": "stc_relationship",
"stc_name": "Datatype",
"stc_description": "Datatype of the property.",
"stc_required": true,
"stc_advanced": false,
"stc_position": 1,
"stc_options": {
"stc_target_object": "stc_datatype",
"stc_identifier": true
}
},
"stc_name": {
"stc_datatype": "stc_string",
"stc_name": "Name",
"stc_description": "Name of the property.",
"stc_required": true,
"stc_advanced": false,
"stc_position": 2
},
"stc_description": {
"stc_datatype": "stc_string",
"stc_name": "Description",
"stc_description": "Description of the property.",
"stc_required": false,
"stc_advanced": false,
"stc_position": 3
},
"stc_condition": {
"stc_datatype": "stc_formula",
"stc_name": "Condition",
"stc_description": "Condition according to which the property is available.",
"stc_required": false,
"stc_advanced": true,
"stc_position": 4
},
"stc_default": {
"stc_datatype": "stc_dynamic",
"stc_name": "Default value",
"stc_description": "Default value of the property.",
"stc_required": false,
"stc_advanced": true,
"stc_position": 5,
"stc_options": {
"stc_datatype_reference": "this.stc_datatype",
"stc_options_reference": "this.stc_options"
}
},
"stc_required": {
"stc_datatype": "stc_boolean",
"stc_name": "Required",
"stc_description": "Whether the property is required.",
"stc_default": false,
"stc_required": false,
"stc_advanced": true,
"stc_position": 6
},
"stc_advanced": {
"stc_datatype": "stc_boolean",
"stc_name": "Advanced",
"stc_description": "Whether the property is advanced.",
"stc_default": false,
"stc_required": false,
"stc_advanced": true,
"stc_position": 7
},
"stc_options": {
"stc_datatype": "stc_json",
"stc_name": "Options",
"stc_description": "Options of the property.",
"stc_default": false,
"stc_required": false,
"stc_advanced": true,
"stc_position": 8,
"stc_options": {
"stc_schema_reference": "record.stc_datatype.stc_options"
}
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment