Created
December 19, 2012 14:20
-
-
Save nickl-/4336979 to your computer and use it in GitHub Desktop.
json-schema-schema
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"description": "A set of products", | |
"type": "array", | |
"items": { | |
"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" | |
} | |
}, | |
"dimensions": { | |
"type": "object", | |
"properties": { | |
"length": { "type": "number", "required": true }, | |
"width": { "type": "number", "required": true }, | |
"height": { "type": "number", "required": true } | |
} | |
}, | |
"warehouseLocation": { | |
"description": "The location of the warehouse the product is stored at", | |
"$ref": "http://json-schema.org/geo" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment