{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adadiamonds-com/json-schema/adadiamonds-com-engagement-ring-schema.json",
  "title": "EngagementRing",
  "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/EngagementRing",
  "type": "object",
  "required": [
    "sku",
    "title",
    "url",
    "shapes",
    "priceFrom",
    "images"
  ],
  "properties": {
    "object": {
      "type": "string",
      "const": "engagement_ring"
    },
    "currency": {
      "type": "string",
      "const": "USD"
    },
    "price_note": {
      "type": "string"
    },
    "sku": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "shapes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "style": {
      "type": [
        "string",
        "null"
      ]
    },
    "type": {
      "type": [
        "string",
        "null"
      ]
    },
    "priceFrom": {
      "type": [
        "number",
        "null"
      ],
      "description": "USD. Setting only; excludes the center diamond."
    },
    "platinumUpcharge": {
      "type": [
        "number",
        "null"
      ],
      "description": "USD added for platinum."
    },
    "twoToneUpcharge": {
      "type": [
        "number",
        "null"
      ],
      "description": "USD added for a two-tone setting."
    },
    "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"
          ]
        }
      }
    }
  }
}