summaryrefslogtreecommitdiff
path: root/schema/course.schema.json
diff options
context:
space:
mode:
authorblackhao <13851610112@163.com>2025-08-22 02:51:50 -0500
committerblackhao <13851610112@163.com>2025-08-22 02:51:50 -0500
commit4aab4087dc97906d0b9890035401175cdaab32d4 (patch)
tree4e2e9d88a711ec5b1cfa02e8ac72a55183b99123 /schema/course.schema.json
parentafa8f50d1d21c721dabcb31ad244610946ab65a3 (diff)
2.0
Diffstat (limited to 'schema/course.schema.json')
-rw-r--r--schema/course.schema.json16
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"]
+}
+
+