{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blumee-app/json-schema/blumee-app-product-detail-schema.json",
  "title": "ProductDetail",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blumee-app-openapi.json#/components/schemas/ProductDetail",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "title": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "price": {
      "type": "string"
    },
    "currency": {
      "type": "string"
    },
    "imageUrls": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "images": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "src": {
            "type": "string"
          },
          "width": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "height": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "variants": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string"
                },
                "width": {
                  "type": "integer",
                  "exclusiveMinimum": 0
                }
              },
              "required": [
                "url",
                "width"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "src",
          "width",
          "height",
          "variants"
        ],
        "additionalProperties": false
      },
      "default": []
    },
    "partner": {
      "$ref": "#/$defs/CatalogPartner"
    },
    "flowers": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "colors": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "occasion": {
      "type": [
        "string",
        "null"
      ]
    },
    "size": {
      "type": [
        "string",
        "null"
      ]
    },
    "style": {
      "type": [
        "string",
        "null"
      ]
    },
    "category": {
      "type": [
        "string",
        "null"
      ]
    },
    "categoryPath": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "default": []
    },
    "available": {
      "type": "boolean"
    },
    "affiliateUrl": {
      "type": "string"
    },
    "deliveryDaysMin": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "deliveryDaysMax": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "deliveryCostCents": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "species": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ProductFlowerLink"
      }
    },
    "createdAt": {
      "type": "string"
    },
    "updatedAt": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "title",
    "description",
    "price",
    "currency",
    "imageUrls",
    "partner",
    "flowers",
    "colors",
    "occasion",
    "size",
    "style",
    "category",
    "available",
    "affiliateUrl",
    "deliveryDaysMin",
    "deliveryDaysMax",
    "deliveryCostCents",
    "species",
    "createdAt",
    "updatedAt"
  ],
  "additionalProperties": false,
  "$defs": {
    "CatalogPartner": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name"
      ],
      "additionalProperties": false
    },
    "ProductFlowerLink": {
      "type": "object",
      "properties": {
        "speciesId": {
          "type": "string",
          "format": "uuid"
        },
        "scientificName": {
          "type": "string"
        },
        "genus": {
          "type": [
            "string",
            "null"
          ]
        },
        "commonNames": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "confidence": {
          "type": "number"
        }
      },
      "required": [
        "speciesId",
        "scientificName",
        "genus",
        "commonNames",
        "confidence"
      ],
      "additionalProperties": false
    }
  }
}