{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ares-gov-cz/json-schema/ares-gov-cz-standardizovana-adresa-filtr-schema.json",
  "title": "StandardizovanaAdresaFiltr",
  "description": "Komplexní filtr pro standardizaci adresy RÚIAN ",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ares-gov-cz-openapi.yml#/components/schemas/StandardizovanaAdresaFiltr",
  "type": "object",
  "allOf": [
    {
      "$ref": "#/$defs/StrankovaniARazeni"
    },
    {
      "properties": {
        "kodObce": {
          "format": "int32",
          "maximum": 999999,
          "minimum": 0,
          "type": "integer",
          "description": "Kód obce"
        },
        "nazevObce": {
          "maxLength": 48,
          "type": "string",
          "description": "Název obce"
        },
        "kodCastiObce": {
          "format": "int32",
          "maximum": 999999,
          "minimum": 0,
          "type": "integer",
          "description": "Kód části obce"
        },
        "nazevCastiObce": {
          "maxLength": 48,
          "type": "string",
          "description": "Název části obce"
        },
        "kodMestskehoCastiObvodu": {
          "format": "int32",
          "maximum": 999999,
          "minimum": 0,
          "type": "integer",
          "description": "Kód městské části statutárního města nebo Prahy "
        },
        "nazevMestskehoCastiObvodu": {
          "maxLength": 32,
          "type": "string",
          "description": "Název městské části statutárního města nebo Prahy"
        },
        "kodUlice": {
          "format": "int32",
          "maximum": 9999999,
          "minimum": 0,
          "type": "integer",
          "description": "Kód ulice, veřejného prostranství "
        },
        "nazevUlice": {
          "maxLength": 48,
          "type": "string",
          "description": "Název ulice, veřejného prostranství "
        },
        "cisloDomovni": {
          "maximum": 9999,
          "type": "integer",
          "description": "Číslo domovní"
        },
        "cisloOrientacni": {
          "maximum": 999,
          "type": "integer",
          "description": "Číslo orientační - číselná část"
        },
        "cisloOrientacniPismeno": {
          "maxLength": 1,
          "type": "string",
          "description": "Číslo orientační - písmenná část"
        },
        "kodAdresnihoMista": {
          "maximum": 999999999,
          "minimum": 0,
          "type": "integer",
          "description": "Kód adresního místa"
        },
        "textovaAdresa": {
          "maxLength": 1500,
          "type": "string",
          "description": "Nestrukturovaná adresa"
        },
        "typStandardizaceAdresy": {
          "type": "string",
          "description": "Typ požadované standardizace - kód (číselník kod:TypStandardizaceAdresy) UPLNA_STANDARDIZACE, VYHOVUJICI_ADRESY"
        }
      }
    }
  ],
  "$defs": {
    "StrankovaniARazeni": {
      "type": "object",
      "description": "Předek pro všechny seznamy obsahující stránkování a řazení. Defaultní parametry pro všechny aplikace s komplexním filtrem: [+/-]icoiD [+/-]obchodniJmeno [+/-]nazevObce ",
      "properties": {
        "start": {
          "format": "int32",
          "minimum": 0,
          "type": "integer",
          "description": "Offset pro stránkování (poloha prvního vráceného prvku)."
        },
        "pocet": {
          "format": "int32",
          "minimum": 0,
          "type": "integer",
          "description": "Počet prvků k výstupu."
        },
        "razeni": {
          "type": "array",
          "items": {
            "type": "string",
            "description": "Seznam názvů definujících řazení výstupu."
          }
        }
      }
    }
  }
}