{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "product.schema.json", "title": "Product", "description": "A product that can be purchased", "type": "object", "properties": { "name": { "description": "The product's name", "type": "string" }, "brand": { "description": "The product's brand", "type": "string" }, "price": { "description": "The cost of a single unit", "type": "object", "properties": { "value": { "type": "number" }, "currency": { "description": "The currency for the value", "type": "string" } }, "required": ["value"] }, "shippingCost": { "description": "The cost of shipping", "type": "object", "properties": { "value": { "type": "number" }, "currency": { "description": "The currency for the value", "type": "string" } }, "required": ["value"] } }, "required": ["name"] }