Skip to content

Instantly share code, notes, and snippets.

@kayaelle
Last active August 29, 2015 14:09
Show Gist options
  • Save kayaelle/c154a671cac8216eee43 to your computer and use it in GitHub Desktop.
Save kayaelle/c154a671cac8216eee43 to your computer and use it in GitHub Desktop.
Structural Validation Schema for Geolocation Extension
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://gist.github.com/kayaelle/c154a671cac8216eee43",
"title": "Geolocation Open Badge Extension",
"description": "This extension provides latitude and longitude coordinates for an Open Badge.",
"type": "object",
"properties": {
"geoLocations": {
"type":"array",
"items": {
"type": "object",
"properties": {
"latitude": { "type": "string" },
"longitude": { "type": "string" }
},
"required": ["latitude", "longitude"]
}
}
},
"required": ["geoLocations"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment