Skip to content

Instantly share code, notes, and snippets.

@nickl-
Created December 19, 2012 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickl-/4336949 to your computer and use it in GitHub Desktop.
Save nickl-/4336949 to your computer and use it in GitHub Desktop.
json-schema-tags
{
"description": "A representation of a product",
"type": "object",
"properties": {
"id": {
"description": "The unique, canonical identifier for a product ",
"type": "number",
"required": true
},
"name": {
"description": "Name of the product",
"type": "string",
"required": true
},
"price": {
"required": true,
"type": "number",
"minimum": 0,
"required": true
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment