Skip to content

Instantly share code, notes, and snippets.

@fge
Last active December 10, 2015 16:28
Show Gist options
  • Save fge/4461668 to your computer and use it in GitHub Desktop.
Save fge/4461668 to your computer and use it in GitHub Desktop.
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Product",
"description": "A product from Acme's catalog",
"type": "object",
"properties": {
"id": {
"description": "The unique identifier for a product",
"type": "integer"
},
"name": {
"description": "Name of the product",
"type": "string"
},
"price": {
"type": "number",
"minimum": 0,
"exclusiveMinimum": true
}
},
"required": ["id", "name", "price"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment