Skip to content

Commit

Permalink
ktl-1171 fix: validation schema for universities.json
Browse files Browse the repository at this point in the history
  • Loading branch information
nikpachoo committed Sep 20, 2023
1 parent fa183b7 commit def7bd9
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions data/schemas/universities.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,24 @@
"type": "string"
},
"courses": {
"type": "object",
"properties": {
"name": {
"type": "string"
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"url": {
"type": [
"string",
"null"
],
"format": "uri"
}
},
"url": {
"type": "string"
}
},
"additionalProperties": false
"required": ["name", "url"],
"additionalProperties": false
}
},
"geo": {
"type": "object",
Expand All @@ -32,15 +40,11 @@
"type": "number"
}
},
"required": ["lat", "lng"],
"additionalProperties": false
}
},
"additionalProperties": false,
"required": [
"title",
"location",
"courses",
"geo"
]
"required": ["title", "location", "courses", "geo"],
"additionalProperties": false
}
}

0 comments on commit def7bd9

Please sign in to comment.