{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adadiamonds-com/json-schema/adadiamonds-com-jewelry-item-schema.json",
  "title": "JewelryItem",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adadiamonds-com-catalog-api-openapi.yml#/components/schemas/JewelryItem",
  "type": "object",
  "required": [
    "sku",
    "title",
    "url",
    "shapes",
    "priceFrom",
    "images"
  ],
  "properties": {
    "object": {
      "type": "string",
      "const": "jewelry_item"
    },
    "currency": {
      "type": "string",
      "const": "USD"
    },
    "sku": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "category": {
      "type": [
        "string",
        "null"
      ]
    },
    "type": {
      "type": [
        "string",
        "null"
      ]
    },
    "subtype": {
      "type": [
        "string",
        "null"
      ]
    },
    "shapes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "priceFrom": {
      "type": [
        "number",
        "null"
      ],
      "description": "USD."
    },
    "priceMax": {
      "type": [
        "number",
        "null"
      ],
      "description": "USD."
    },
    "images": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ProductImage"
      }
    }
  },
  "$defs": {
    "ProductImage": {
      "type": "object",
      "required": [
        "metal",
        "view",
        "url"
      ],
      "properties": {
        "metal": {
          "type": "string"
        },
        "view": {
          "type": "string",
          "enum": [
            "primary",
            "alternate"
          ]
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "alt": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}