Skip to content

Instantly share code, notes, and snippets.

@swedishkid
Created September 6, 2017 11:56
Show Gist options
  • Save swedishkid/5fc5bd89d109045cee3f68578527df8a to your computer and use it in GitHub Desktop.
Save swedishkid/5fc5bd89d109045cee3f68578527df8a to your computer and use it in GitHub Desktop.
{
"$schema": "http://json-schema.org/draft-06/schema#",
"description": "An Address following the convention of http://microformats.org/wiki/hcard",
"type": "object",
"properties": {
"post-office-box": { "type": "string" },
"extended-address": { "type": "string" },
"street-address": { "type": "string" },
"locality":{ "type": "string" },
"region": { "type": "string" },
"postal-code": { "type": "string" },
"country-name": { "type": "string"}
},
"required": ["locality", "region", "country-name"],
"dependencies": {
"post-office-box": ["street-address"],
"extended-address": ["street-address"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment