{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adadiamonds-com/json-schema/adadiamonds-com-engagement-ring-list-schema.json",
  "title": "EngagementRingList",
  "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/EngagementRingList",
  "type": "object",
  "required": [
    "object",
    "currency",
    "data",
    "pagination"
  ],
  "properties": {
    "object": {
      "type": "string",
      "const": "list"
    },
    "currency": {
      "type": "string",
      "const": "USD"
    },
    "price_note": {
      "type": "string"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EngagementRing"
      }
    },
    "pagination": {
      "$ref": "#/$defs/Pagination"
    }
  },
  "$defs": {
    "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"
          }
        }
      }
    },
    "Pagination": {
      "type": "object",
      "required": [
        "total",
        "limit",
        "offset",
        "has_more"
      ],
      "properties": {
        "total": {
          "type": "integer",
          "description": "Matches before pagination."
        },
        "limit": {
          "type": "integer"
        },
        "offset": {
          "type": "integer"
        },
        "has_more": {
          "type": "boolean",
          "description": "Whether `offset + limit` would return more."
        }
      }
    },
    "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"
          ]
        }
      }
    }
  }
}