Skip to content

Commit

Permalink
Fix: _globals schema nesting (fixes #75) (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-allen-89 authored May 30, 2023
1 parent 138062c commit e7bd9ae
Showing 1 changed file with 50 additions and 23 deletions.
73 changes: 50 additions & 23 deletions schema/course.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,42 @@
"type": "object",
"default": {},
"properties": {
"_visua11y": {
"_accessibility": {
"type": "object",
"default": {},
"properties": {
"_navOrder": {
"type": "number",
"title": "Nav order",
"default": 0,
"_backboneForms": "Text"
"_ariaLabels": {
"type": "object",
"default": {},
"properties": {
"visua11y": {
"type": "string",
"title": "Visual accessibility settings",
"default": "Visual accessibility settings",
"_adapt": {
"translatable": true
}
}
}
}
}
},
"_extensions": {
"type": "object",
"default": {},
"properties": {
"_visua11y": {
"type": "object",
"title": "Visua11y",
"default": {},
"properties": {
"_navOrder": {
"type": "number",
"title": "Nav order",
"default": 0,
"_backboneForms": "Number"
}
}
}
}
}
Expand Down Expand Up @@ -190,7 +217,7 @@
"type": "number",
"title": "Default value",
"default": 70,
"_backboneForms": "Text"
"_backboneForms": "Number"
}
}
},
Expand Down Expand Up @@ -380,7 +407,7 @@
"type": "number",
"title": "Small default",
"default": 0.9,
"_backboneForms": "Text"
"_backboneForms": "Number"
},
"mediumLabel": {
"type": "string",
Expand All @@ -391,7 +418,7 @@
"type": "number",
"title": "Medium default",
"default": 1,
"_backboneForms": "Text"
"_backboneForms": "Number"
},
"largeLabel": {
"type": "string",
Expand All @@ -402,13 +429,13 @@
"type": "number",
"title": "Large default",
"default": 1.2,
"_backboneForms": "Text"
"_backboneForms": "Number"
},
"_default": {
"type": "number",
"title": "Default value",
"default": 1,
"_backboneForms": "Text"
"_backboneForms": "Number"
}
}
},
Expand Down Expand Up @@ -436,7 +463,7 @@
"type": "number",
"title": "Small default",
"default": 0.5,
"_backboneForms": "Text"
"_backboneForms": "Number"
},
"mediumLabel": {
"type": "string",
Expand All @@ -447,7 +474,7 @@
"type": "number",
"title": "Medium default",
"default": 1,
"_backboneForms": "Text"
"_backboneForms": "Number"
},
"largeLabel": {
"type": "string",
Expand All @@ -458,13 +485,13 @@
"type": "number",
"title": "Large default",
"default": 2,
"_backboneForms": "Text"
"_backboneForms": "Number"
},
"_default": {
"type": "number",
"title": "Default value",
"default": 1,
"_backboneForms": "Text"
"_backboneForms": "Number"
}
}
},
Expand Down Expand Up @@ -492,7 +519,7 @@
"type": "number",
"title": "Small default",
"default": 0.97,
"_backboneForms": "Text"
"_backboneForms": "Number"
},
"mediumLabel": {
"type": "string",
Expand All @@ -503,7 +530,7 @@
"type": "number",
"title": "Medium default",
"default": 1,
"_backboneForms": "Text"
"_backboneForms": "Number"
},
"largeLabel": {
"type": "string",
Expand All @@ -514,13 +541,13 @@
"type": "number",
"title": "Large default",
"default": 1.2,
"_backboneForms": "Text"
"_backboneForms": "Number"
},
"_default": {
"type": "number",
"title": "Default value",
"default": 1,
"_backboneForms": "Text"
"_backboneForms": "Number"
}
}
},
Expand Down Expand Up @@ -548,7 +575,7 @@
"type": "number",
"title": "Small default",
"default": 0.97,
"_backboneForms": "Text"
"_backboneForms": "Number"
},
"mediumLabel": {
"type": "string",
Expand All @@ -559,7 +586,7 @@
"type": "number",
"title": "Medium default",
"default": 1,
"_backboneForms": "Text"
"_backboneForms": "Number"
},
"largeLabel": {
"type": "string",
Expand All @@ -570,13 +597,13 @@
"type": "number",
"title": "Large default",
"default": 1.2,
"_backboneForms": "Text"
"_backboneForms": "Number"
},
"_default": {
"type": "number",
"title": "Default value",
"default": 1,
"_backboneForms": "Text"
"_backboneForms": "Number"
}
}
},
Expand Down

0 comments on commit e7bd9ae

Please sign in to comment.