diff --git a/data/schemas/universities.json b/data/schemas/universities.json index ef8e99b06858..fa3bd52b5a63 100644 --- a/data/schemas/universities.json +++ b/data/schemas/universities.json @@ -11,16 +11,21 @@ "type": "string" }, "courses": { - "type": "object", - "properties": { - "name": { - "type": "string" + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "url": { + "type": "string", + "format": "uri" + } }, - "url": { - "type": "string" - } - }, - "additionalProperties": false + "required": ["name", "url"], + "additionalProperties": false + } }, "geo": { "type": "object", @@ -32,15 +37,11 @@ "type": "number" } }, + "required": ["lat", "lng"], "additionalProperties": false } }, - "additionalProperties": false, - "required": [ - "title", - "location", - "courses", - "geo" - ] + "required": ["title", "location", "courses", "geo"], + "additionalProperties": false } }