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