Skip to content

Instantly share code, notes, and snippets.

@clevinson
Created February 19, 2015 13:54
Show Gist options
  • Save clevinson/e366899acc2cae8fc6f6 to your computer and use it in GitHub Desktop.
Save clevinson/e366899acc2cae8fc6f6 to your computer and use it in GitHub Desktop.
{
"$schema": "http://json-schema.org/draft-04/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