-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add schema for data and config files (#785)
Closes #661 Signed-off-by: Cintia Sánchez García <cynthiasg@icloud.com>
- Loading branch information
1 parent
7f60c8b
commit 78c5155
Showing
8 changed files
with
1,096 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
"title": "Landscape games JSON schema", | ||
"description": "The games file allows defining the content of the landscape games", | ||
"type": "object", | ||
"properties": { | ||
"quiz": { | ||
"title": "Quiz game content", | ||
"type": "object", | ||
"properties": { | ||
"questions": { | ||
"title": "List of questions", | ||
"description": "A subset of these questions will be randomly picked up for each quiz game", | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"title": { | ||
"title": "Question title", | ||
"type": "string", | ||
"examples": ["Which of the following projects provides an open source container orchestration engine for automating deployment, scaling, and management of containerized applications?"] | ||
}, | ||
"options": { | ||
"title": "Answer options", | ||
"description": "At least two options must be provided. Options will be shuffled on every quiz game, so the order used here is not important", | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"item": { | ||
"title": "Name of the landscape item this option refers to", | ||
"description": "It must match the name of the item in the landscape.yml file", | ||
"type": "string", | ||
"examples": ["Kubernetes", "gRPC", "Cilium"] | ||
}, | ||
"category": { | ||
"title": "Category of the item in the landscape", | ||
"description": "This field can be used when the item is not unique across the landscape to avoid ambiguity", | ||
"type": "string", | ||
"examples": ["Orchestration & Management"] | ||
}, | ||
"subcategory": { | ||
"title": "Subcategory of the item in the landscape", | ||
"description": "This field can be used when the item is not unique across the landscape to avoid ambiguity", | ||
"type": "string", | ||
"examples": ["Scheduling & Orchestration"] | ||
}, | ||
"correct": { | ||
"title": "Whether this option is correct", | ||
"description": "It can be omitted if this not the correct option. Only one option can be marked as correct", | ||
"type": "boolean", | ||
"examples": [true, false] | ||
} | ||
}, | ||
"required": ["item"] | ||
}, | ||
"minItems": 2 | ||
} | ||
}, | ||
"required": ["title", "options"] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"required": ["quiz"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"title": "Landscape guide JSON schema", | ||
"description": "The guide file allows defining the content of the landscape guide. The landscape guide is organized into categories and subcategories. Each of these entities requires a name and some content. The content can be provided in markdown format. Categories and subcategories names are not required to match the ones defined in the landscape data file but, when they do, those categories/subcategories will be enriched with some extra information. So whenever possible, it's highly recommended that they do. We recommend using headings of level 4-6 within the content blocks as levels 1-3 are reserved to illustrate the hierarchy of categories and subcategories", | ||
"type": "object", | ||
"properties": { | ||
"categories": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"category": { | ||
"title": "The name of the category", | ||
"type": "string" | ||
}, | ||
"content": { | ||
"title": "The content of the category in markdown format", | ||
"type": "string" | ||
}, | ||
"keywords": { | ||
"title": "Keywords associated with the category", | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"subcategories": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"subcategory": { | ||
"title": "The name of the subcategory", | ||
"type": "string" | ||
}, | ||
"content": { | ||
"title": "The content of the subcategory in markdown format", | ||
"type": "string" | ||
} | ||
}, | ||
"required": ["subcategory", "content"] | ||
} | ||
} | ||
}, | ||
"required": ["category", "content"] | ||
} | ||
} | ||
}, | ||
"required": ["categories"] | ||
} |
Oops, something went wrong.