{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cervejabarata-com-br/json-schema/cervejabarata-com-br-city-request-schema.json",
  "title": "CityRequest",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cervejabarata-com-br-openapi.json#/components/schemas/CityRequest",
  "type": "object",
  "properties": {
    "city": {
      "type": "string",
      "minLength": 2,
      "maxLength": 80,
      "description": "The city, as written"
    },
    "state": {
      "type": "string",
      "minLength": 2,
      "maxLength": 40,
      "description": "Its state, as written (BA, Bahia)"
    },
    "email": {
      "type": "string",
      "maxLength": 200,
      "format": "email",
      "description": "Only to say the city is live; deleted after"
    },
    "consent": {
      "type": "boolean",
      "description": "LGPD consent: required with an email"
    },
    "turnstile": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2048,
      "description": "Cloudflare Turnstile token"
    }
  },
  "required": [
    "city",
    "turnstile"
  ],
  "additionalProperties": false
}