| 1 | { |
| 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | "$id": "http://example.com/order_details.schema.json", |
| 4 | "title": "Order Details", |
| 5 | "description": "Order Details", |
| 6 | "type": "object", |
| 7 | "properties": { |
| 8 | "id": { |
| 9 | "description": "Order Id", |
| 10 | "type": "integer" |
| 11 | }, |
| 12 | "customer": { |
| 13 | "description": "Customer", |
| 14 | "$ref": "http://example.com/customer.schema.json" |
| 15 | }, |
| 16 | "payment_id": { |
| 17 | "description": "Payment Id", |
| 18 | "type": "string" |
| 19 | } |
| 20 | }, |
| 21 | "required": [ "id", "customer"] |
| 22 | } |