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 16, 2023
1 parent 7e1eda3 commit f377af8
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions data/schemas/universities.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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
}
}

0 comments on commit f377af8

Please sign in to comment.