{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://izifete.fr/.well-known/a2a/event-provider-search-input.schema.json",
  "title": "Izifete event_provider_search input",
  "description": "Entrée fermée et sans donnée personnelle pour la recherche publique A2A Izifete.",
  "type": "object",
  "additionalProperties": false,
  "required": ["services", "city"],
  "properties": {
    "services": {
      "type": "array",
      "minItems": 1,
      "maxItems": 5,
      "items": {
        "type": "string",
        "enum": [
          "traiteur",
          "streetfood",
          "dj",
          "photographe",
          "videaste",
          "photobooth",
          "decorateur",
          "animation",
          "patissier",
          "fleuriste",
          "location",
          "chef",
          "maquilleur",
          "coiffeur",
          "lieu",
          "esthetique"
        ]
      }
    },
    "city": {
      "type": "string",
      "minLength": 2,
      "maxLength": 80,
      "pattern": "^[A-Za-zÀ-ÖØ-öø-ÿĀ-ž][A-Za-zÀ-ÖØ-öø-ÿĀ-ž '\u2019-]*$"
    },
    "postal_code": {
      "type": "string",
      "pattern": "^[0-9]{5}$"
    },
    "limit_per_service": {
      "type": "integer",
      "minimum": 1,
      "maximum": 5,
      "default": 3
    }
  }
}
