From 4aab4087dc97906d0b9890035401175cdaab32d4 Mon Sep 17 00:00:00 2001 From: blackhao <13851610112@163.com> Date: Fri, 22 Aug 2025 02:51:50 -0500 Subject: 2.0 --- schema/course.schema.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 schema/course.schema.json (limited to 'schema/course.schema.json') 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"] +} + + -- cgit v1.2.3