summaryrefslogtreecommitdiff
path: root/schema/course.schema.json
blob: 80ddfcf3298de5ccaa29be3ce5ae94dee127461e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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"]
}