{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/knossot-org/json-schema/knossot-org-recommendation-request-schema.json",
  "title": "RecommendationRequest",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/knossot-org-openapi.json#/components/schemas/RecommendationRequest",
  "type": "object",
  "required": [
    "brief",
    "region"
  ],
  "properties": {
    "brief": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000,
      "description": "Never stored."
    },
    "region": {
      "type": "string",
      "enum": [
        "hudson-valley",
        "river",
        "philly",
        "nyc"
      ]
    },
    "from": {
      "type": "string",
      "format": "date",
      "description": "Eastern date; default today."
    },
    "to": {
      "type": "string",
      "format": "date",
      "description": "Eastern date; default from + 6; window at most 14 days, within 60 days."
    },
    "category": {
      "type": "array",
      "maxItems": 10,
      "items": {
        "type": "string"
      }
    },
    "free": {
      "type": "boolean"
    },
    "exclude_keys": {
      "type": "array",
      "maxItems": 50,
      "items": {
        "type": "string"
      }
    },
    "max_picks": {
      "type": "integer",
      "minimum": 1,
      "maximum": 5
    }
  }
}