Skip to content

Commit

Permalink
Fix: Standardise example.json and schema (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-allen-89 authored Jun 8, 2023
1 parent 9380728 commit 926ce9a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
3 changes: 2 additions & 1 deletion example.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@
}
],
"_hideComponents": [
"blank"
"blank",
"assessmentResults"
],
"_hideTypes": [
],
Expand Down
18 changes: 16 additions & 2 deletions schema/course.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,18 @@
"description": "Show the yellow highlights on search results.",
"default": true
},
"_hideComponents": {
"type": "string",
"title": "Hide Components",
"description": "A comma-separated list of components which will be ignored by the search algorithm",
"default": "blank,assessmentResults"
},
"_hideTypes": {
"type": "string",
"title": "Hide Types",
"description": "A comma-separated list of types which will be ignored by the search algorithm",
"default": ""
},
"_ignoreWords": {
"type": "string",
"title": "Ignored words",
Expand Down Expand Up @@ -114,7 +126,7 @@
},
"description": {
"type": "string",
"title": "Placeholder",
"title": "Description",
"description": "Defaults to 'Enter search criteria'",
"default": "Enter search criteria",
"_adapt": {
Expand All @@ -123,7 +135,8 @@
},
"placeholder": {
"type": "string",
"title": "Placeholder text for the search box",
"title": "Placeholder",
"description": "Placeholder text for the search box",
"default": "",
"_adapt": {
"translatable": true
Expand All @@ -132,6 +145,7 @@
"noResultsMessage": {
"type": "string",
"title": "No results message",
"description": "Message shown when a search returns no results. Defaults to 'No results found'",
"default": "No results found",
"_adapt": {
"translatable": true
Expand Down

0 comments on commit 926ce9a

Please sign in to comment.