diff options
Diffstat (limited to 'schema')
| -rw-r--r-- | schema/course.schema.json | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/schema/course.schema.json b/schema/course.schema.json new file mode 100644 index 0000000..80ddfcf --- /dev/null +++ b/schema/course.schema.json @@ -0,0 +1,16 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://example.com/uiuc-course-graph/course.schema.json", + "title": "UIUC Course", + "type": "object", + "additionalProperties": false, + "properties": { + "index": { "type": "string", "description": "Subject and number, e.g., 'CS 125'" }, + "name": { "type": ["string", "null"], "description": "Course title/label" }, + "description": { "type": ["string", "null"], "description": "Catalog description" }, + "prerequisites": { "type": ["string", "null"], "description": "Free-text prerequisites as reported" } + }, + "required": ["index"] +} + + |
