{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/emile-wine/json-schema/emile-wine-recommendation-request-schema.json",
  "title": "RecommendationRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/emile-wine-recommendations-api-openapi.yml#/components/schemas/RecommendationRequest",
  "properties": {
    "maturity": {
      "type": "boolean",
      "title": "Maturity",
      "default": false
    },
    "food": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Food"
    },
    "filters": {
      "anyOf": [
        {
          "$ref": "#/$defs/FilterCriteriaPayload"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "type": "object",
  "$defs": {
    "FilterCriteriaPayload": {
      "properties": {
        "colors": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Colors",
          "default": []
        },
        "window": {
          "type": "string",
          "enum": [
            "all",
            "drinkable",
            "aging",
            "passed"
          ],
          "title": "Window",
          "default": "all"
        },
        "statuses": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Statuses",
          "default": []
        },
        "regions": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Regions",
          "default": []
        },
        "countries": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Countries",
          "default": []
        },
        "grapes": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Grapes",
          "default": []
        },
        "price_min": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Price Min"
        },
        "price_max": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ],
          "title": "Price Max"
        },
        "full_text": {
          "type": "string",
          "title": "Full Text",
          "default": ""
        }
      },
      "type": "object",
      "title": "FilterCriteriaPayload"
    }
  }
}