{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stat-gov-pl/json-schema/stat-gov-pl-metryczka-schema.json",
  "title": "metryczka",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stat-gov-pl-sdp-openapi.yml#/components/schemas/metryczka",
  "type": "object",
  "properties": {
    "id-zmienna": {
      "type": "integer",
      "description": "id_zmienna",
      "format": "int64"
    },
    "nazwa": {
      "type": "string",
      "description": "nazwa"
    },
    "nazwa-skrocona": {
      "type": "string",
      "description": "nazwa_skrocona"
    },
    "tagi": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/tagi"
      }
    },
    "pojecia": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/pojecia"
      }
    },
    "wyjasnienia-metodologiczne": {
      "$ref": "#/$defs/wyjasnienia-metodologiczne"
    },
    "notki": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/notki"
      }
    },
    "przekroje": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/przekroje"
      }
    },
    "czestotliwosci": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/czestotliwosci"
      },
      "description": "szereg_czasowy"
    },
    "zestawy": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/zestawy"
      }
    },
    "badania": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/badania"
      }
    },
    "akty-prawne": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/akty-prawne"
      }
    },
    "jednostki": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/jednostki"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "akty-prawne": {
      "type": "object",
      "properties": {
        "id-akt": {
          "type": "integer",
          "description": "id_akt",
          "format": "int64"
        },
        "tytul-akt": {
          "type": "string",
          "description": "tytul_akt"
        },
        "adres-publikacyjny": {
          "type": "string",
          "description": "adres_publikacyjny"
        },
        "inne-publikacje": {
          "type": "string",
          "description": "inne_publikacje"
        }
      },
      "additionalProperties": false
    },
    "badania": {
      "type": "object",
      "properties": {
        "id-badanie": {
          "type": "integer",
          "description": "id_badanie",
          "format": "int64"
        },
        "symbol-badanie": {
          "type": "string",
          "description": "symbol_badanie"
        },
        "temat-badanie": {
          "type": "string",
          "description": "temat_badanie"
        },
        "badanie-cel": {
          "type": "string",
          "description": "badanie_cel"
        }
      },
      "additionalProperties": false
    },
    "czestotliwosci": {
      "type": "object",
      "properties": {
        "id-czestotliwosc": {
          "type": "integer",
          "description": "id_czestotliwosc",
          "format": "int32"
        },
        "nazwa-czestotliwosc": {
          "type": "string",
          "description": "nazwa_czestotliwosc"
        }
      },
      "additionalProperties": false
    },
    "jednostki": {
      "type": "object",
      "properties": {
        "id-jednostka": {
          "type": "integer",
          "description": "id_jednostka",
          "format": "int64"
        },
        "nazwa-jednostki": {
          "type": "string",
          "description": "nazwa_jednostki"
        }
      },
      "additionalProperties": false
    },
    "notki": {
      "type": "object",
      "properties": {
        "id-notka": {
          "type": "integer",
          "description": "id_notka",
          "format": "int64"
        },
        "opis": {
          "type": "string",
          "description": "opis"
        }
      },
      "additionalProperties": false
    },
    "pojecia": {
      "type": "object",
      "properties": {
        "id-pojecie": {
          "type": "integer",
          "description": "id_pojecie",
          "format": "int64"
        },
        "nazwa-pojecie": {
          "type": "string",
          "description": "nazwa_pojecie"
        },
        "definicja": {
          "type": "string",
          "description": "definicja"
        },
        "uwagi": {
          "type": "string",
          "description": "uwagi"
        },
        "data-poczatku-pojecie": {
          "type": "string",
          "description": "data_poczatek"
        },
        "data-konca-pojecie": {
          "type": "string",
          "description": "data_koniec"
        }
      },
      "additionalProperties": false
    },
    "przekroje": {
      "type": "object",
      "properties": {
        "id-przekroj": {
          "type": "integer",
          "description": "id_przekroj",
          "format": "int32"
        },
        "nazwa-przekroj": {
          "type": "string",
          "description": "nazwa_przekroj"
        },
        "szereg-czasowy": {
          "type": "string",
          "description": "szereg_czasowy"
        },
        "id-czestotliwosc": {
          "type": "integer",
          "format": "int32"
        },
        "nazwa-czestotliwosc": {
          "type": "string",
          "description": "nazwa_czestotliwosc"
        },
        "aktualizacja-ostatnia": {
          "type": "string",
          "description": "aktualizacja_ostatnia"
        },
        "aktualizacja-kolejna": {
          "type": "string",
          "description": "aktualizacja_kolejna"
        }
      },
      "additionalProperties": false
    },
    "tagi": {
      "type": "object",
      "properties": {
        "id-tag": {
          "type": "integer",
          "description": "id_tag",
          "format": "int64"
        },
        "nazwa-tag": {
          "type": "string",
          "description": "nazwa_tag"
        }
      },
      "additionalProperties": false
    },
    "wyjasnienia-metodologiczne": {
      "type": "object",
      "properties": {
        "wyjasnienia-metodologiczne-tresc": {
          "type": "string",
          "description": "wyjasnienia_metodologiczne"
        },
        "notki": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/notki"
          }
        }
      },
      "additionalProperties": false
    },
    "zestawy": {
      "type": "object",
      "properties": {
        "id-zestaw": {
          "type": "integer",
          "description": "id_zestaw",
          "format": "int64"
        },
        "symbol-zestaw": {
          "type": "string",
          "description": "symbol_zestaw"
        },
        "nazwa-zestaw": {
          "type": "string",
          "description": "nazwa_zestaw"
        },
        "id-gestor": {
          "type": "integer",
          "description": "id_gestor",
          "format": "int64"
        },
        "nazwa-gestor": {
          "type": "string",
          "description": "nazwa_gestor"
        }
      },
      "additionalProperties": false
    }
  }
}