| 1 | { |
| 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | "$id": "http://example.com/product.schema.json", |
| 4 | "description": "A JSON Schema document with no title", |
| 5 | "type": "object", |
| 6 | "properties": { |
| 7 | "productId": { |
| 8 | "description": "The unique identifier for a product", |
| 9 | "type": "integer" |
| 10 | }, |
| 11 | "productName": { |
| 12 | "description": "Name of the product", |
| 13 | "type": "string" |
| 14 | }, |
| 15 | "price": { |
| 16 | "description": "The price of the product", |
| 17 | "type": "number", |
| 18 | "exclusiveMinimum": 0 |
| 19 | }, |
| 20 | "tags": { |
| 21 | "description": "Tags for the product", |
| 22 | "type": "array", |
| 23 | "items": { |
| 24 | "type": "string" |
| 25 | }, |
| 26 | "minItems": 1, |
| 27 | "uniqueItems": true |
| 28 | } |
| 29 | }, |
| 30 | "required": [ "productId", "productName", "price" ] |
| 31 | } |