Skip to content

Instantly share code, notes, and snippets.

@ghalimi
Last active Dec 22, 2015
Embed
What would you like to do?
Form Definition Schema
{
"copyright": "© Sutoiku, Inc. 2013",
"stc_schema": {
"title": "Form Definition Schema",
"type": "object",
"properties": {
"stc_default_tab": {
"stc_datatype": "stc_identifier",
"stc_name": "Default tab",
"stc_description": "Default tab displayed by the form.",
"stc_default": "stc_data",
"stc_required": false,
"stc_advanced": false,
"stc_position": 1
},
"stc_inherit": {
"stc_datatype": "stc_boolean",
"stc_name": "Inherit",
"stc_description": "Inherit layout of Bootstrap Form.",
"stc_default": true,
"stc_required": false,
"stc_advanced": false,
"stc_position": 2
},
"stc_tabs": {
"type": "array",
"stc_name": "Tabs",
"stc_description": "Tabs defined by the form.",
"stc_required": false,
"stc_advanced": false,
"stc_position": 3,
"items": {
"type": "object",
"properties": {
"stc_name": {
"stc_datatype": "stc_string",
"stc_name": "Name",
"stc_description": "Name of the tab.",
"stc_required": true,
"stc_advanced": false,
"stc_position": 1
},
"stc_identifier": {
"stc_datatype": "stc_identifier",
"stc_name": "Identifier",
"stc_description": "Identifier of the tab.",
"stc_required": true,
"stc_advanced": false,
"stc_position": 2
},
"stc_icon": {
"stc_datatype": "stc_relationship",
"stc_name": "Icon",
"stc_description": "Icon of the tab.",
"stc_required": true,
"stc_advanced": false,
"stc_position": 3,
"stc_options": {
"stc_target_object": "stc_icon",
"stc_identifier": true
}
},
"stc_sections": {
"type": "array",
"stc_name": "Sections",
"stc_description": "Sections defined by the tab.",
"stc_required": true,
"stc_advanced": false,
"stc_position": 4,
"items": {
"type": "object",
"properties": {
"stc_name": {
"stc_datatype": "stc_string",
"stc_name": "Name",
"stc_description": "Name of the section.",
"stc_required": true,
"stc_advanced": false,
"stc_position": 1
},
"stc_identifier": {
"stc_datatype": "stc_identifier",
"stc_name": "Identifier",
"stc_description": "Identifier of the section.",
"stc_required": true,
"stc_advanced": false,
"stc_position": 2
},
"stc_hide_header": {
"stc_datatype": "stc_boolean",
"stc_name": "Hide header",
"stc_description": "Whether the section's header is hidden.",
"stc_default": false,
"stc_required": false,
"stc_advanced": false,
"stc_position": 3
},
"stc_columns": {
"type": "array",
"stc_name": "Columns",
"stc_description": "Columns defined by the section.",
"stc_required": false,
"stc_advanced": false,
"stc_position": 4,
"items": {
"type": "object",
"properties": {
"stc_identifier": {
"stc_datatype": "stc_identifier",
"stc_name": "Identifier",
"stc_description": "Identifier of the field displayed in the section.",
"stc_required": true,
"stc_advanced": false,
"stc_position": 1
},
"stc_hide_label": {
"stc_datatype": "stc_boolean",
"stc_name": "Hide label",
"stc_description": "Whether the field's label is hidden.",
"stc_default": false,
"stc_required": false,
"stc_advanced": false,
"stc_position": 2
}
}
}
}
}
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment