Created
November 10, 2018 20:53
-
-
Save pchatterjee/d05a65f8f8e0160f9604973d375922e3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| { | |
| "$schema": "http://json-schema.org/draft-04/schema#", | |
| "title": "Product set", | |
| "type": "array", | |
| "items": { | |
| "title": "Product", | |
| "type": "object", | |
| "properties": { | |
| "id": { | |
| "description": "The unique identifier for a product", | |
| "type": "number" | |
| }, | |
| "name": { | |
| "type": "string" | |
| }, | |
| "price": { | |
| "type": "number", | |
| "minimum": 0, | |
| "exclusiveMinimum": true | |
| }, | |
| "tags": { | |
| "type": "array", | |
| "items": { | |
| "type": "string" | |
| }, | |
| "minItems": 1, | |
| "uniqueItems": true | |
| }, | |
| "dimensions": { | |
| "type": "object", | |
| "properties": { | |
| "length": {"type": "number"}, | |
| "width": {"type": "number"}, | |
| "height": {"type": "number"} | |
| }, | |
| "required": ["length", "width", "height"] | |
| }, | |
| "warehouseLocation": { | |
| "description": "Coordinates of the warehouse with the product", | |
| "$ref": "http://json-schema.org/geo" | |
| } | |
| }, | |
| "required": ["id", "name", "price"] | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment