{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/shopfashion-si/json-schema/shopfashion-si-shop-request-schema.json",
  "title": "ShopRequest",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/shopfashion-si-openapi.json#/components/schemas/ShopRequest",
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "maxLength": 300,
      "description": "Free-text request, e.g. 'black and white striped sweater size M under $80'"
    },
    "recipient": {
      "type": "string"
    },
    "occasion": {
      "type": "string"
    },
    "size": {
      "type": "string",
      "description": "Clothing size, e.g. M"
    },
    "budget": {
      "type": "number",
      "description": "USD, total"
    },
    "avoid": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "maxItems": 10
    },
    "count": {
      "type": "integer",
      "minimum": 1,
      "maximum": 6,
      "default": 3
    }
  },
  "anyOf": [
    {
      "required": [
        "query"
      ]
    },
    {
      "required": [
        "recipient"
      ]
    },
    {
      "required": [
        "occasion"
      ]
    }
  ]
}