{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ablakunio-com/json-schema/ablakunio-com-price-estimate-request-schema.json",
  "title": "PriceEstimateRequest",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ablakunio-com-openapi.json#/components/schemas/PriceEstimateRequest",
  "type": "object",
  "required": [
    "width",
    "height"
  ],
  "properties": {
    "width": {
      "type": "number",
      "description": "Szélesség (az `unit` szerinti egységben; alapért. mm)"
    },
    "height": {
      "type": "number",
      "description": "Magasság (az `unit` szerinti egységben; alapért. mm)"
    },
    "unit": {
      "type": "string",
      "enum": [
        "mm",
        "cm"
      ],
      "default": "mm"
    },
    "type": {
      "$ref": "#/$defs/ProductType"
    },
    "subtype": {
      "type": "string",
      "description": "pl. Erkélyajtó, Emelő-toló"
    },
    "glazing": {
      "type": "string",
      "enum": [
        "double",
        "triple"
      ],
      "description": "2 vagy 3 rétegű üveg"
    },
    "color": {
      "type": "string",
      "description": "Szín, pl. Fehér, Antracit, Aranytölgy"
    },
    "colorExternal": {
      "type": "string"
    },
    "colorInternal": {
      "type": "string"
    },
    "profile": {
      "type": "string"
    },
    "hasShutter": {
      "type": "boolean"
    },
    "hasMosquitoNet": {
      "type": "boolean"
    }
  },
  "$defs": {
    "ProductType": {
      "type": "string",
      "enum": [
        "window",
        "door",
        "shutter"
      ],
      "description": "window=ablak, door=ajtó, shutter=redőny"
    }
  }
}