Skip to content

Instantly share code, notes, and snippets.

@ibebic
Created April 12, 2018 12:29
Show Gist options
  • Save ibebic/ff5ff1ba255a17b5b4c07826eb7efbc6 to your computer and use it in GitHub Desktop.
Save ibebic/ff5ff1ba255a17b5b4c07826eb7efbc6 to your computer and use it in GitHub Desktop.
Example schema
{
"SCHEMAS": [{
"id": "SAMPLESCHEMA",
"name": "Sample schema",
"structure": [{
"level": 1,
"type": "TOPLEVEL1",
"subLevels": ["FORTL1"],
"label": "Top Level 1",
"color": "#008E76",
"isEditable": true,
"contentContainers": [],
"hasAssessments": false,
"hasExams": false,
"hasPrerequisites": false,
"meta": [{
"key": "description",
"type": "TEXTAREA",
"label": "Description",
"placeholder": "Click to add...",
"validate": {
"rules": {
"max": 250
}
}
}]
}, {
"level": 1,
"type": "TOPLEVEL2",
"subLevels": ["FORTL21", "FORTL22"],
"label": "Top Level 2",
"color": "#B39DDB",
"isEditable": true,
"contentContainers": [],
"hasAssessments": false,
"hasExams": false,
"hasPrerequisites": false,
"meta": [{
"key": "description",
"type": "TEXTAREA",
"label": "Description",
"placeholder": "Click to add...",
"validate": {
"rules": {
"max": 250
}
}
}]
}, {
"level": 2,
"type": "FORTL1",
"label": "Below TopLevel1",
"color": "#81D4FA",
"isEditable": true,
"isObjective": true,
"contentContainers": ["PERSPECTIVE"],
"hasAssessments": false,
"hasExams": false,
"hasPrerequisites": true,
"meta": [{
"key": "description",
"type": "TEXTAREA",
"label": "Description",
"placeholder": "Click to add...",
"validate": {
"rules": {
"required": false,
"max": 250
}
}
}]
}, {
"level": 2,
"type": "FORTL21",
"label": "Below Top Level 2",
"color": "#E57373",
"isEditable": true,
"isObjective": true,
"contentContainers": [],
"hasAssessments": true,
"hasExams": false,
"hasPrerequisites": false,
"meta": [{
"key": "description",
"type": "TEXTAREA",
"label": "Description",
"placeholder": "Click to add...",
"validate": {
"rules": {
"required": false,
"max": 250
}
}
}]
}, {
"level": 2,
"type": "FORTL22",
"label": "Below Top Level 2 also",
"color": "#B0BEC5",
"isEditable": true,
"isObjective": true,
"contentContainers": ["PERSPECTIVE"],
"hasAssessments": false,
"hasExams": false,
"hasPrerequisites": true,
"meta": [{
"key": "description",
"type": "TEXTAREA",
"label": "Description",
"placeholder": "Click to add...",
"validate": {
"rules": {
"required": false,
"max": 250
}
}
}]
}]
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment