{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dane-biznes-gov-pl/json-schema/dane-biznes-gov-pl-get-rdr-info-response-schema.json",
  "title": "GetRdrInfoResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dane-biznes-gov-pl-openapi.yml#/components/schemas/GetRdrInfoResponse",
  "type": "object",
  "properties": {
    "krs": {
      "type": "string"
    },
    "nip": {
      "type": "string"
    },
    "regon": {
      "type": "string"
    },
    "nazwa": {
      "type": "string"
    },
    "imie": {
      "type": "string"
    },
    "nazwisko": {
      "type": "string"
    },
    "kwalifikacjeZawodowe": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/KwalifikacjaZawodowa"
      }
    },
    "uprawnienia": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Uprawnienie"
      }
    },
    "ograniczenia": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Ograniczenie"
      }
    },
    "properties": {
      "allOf": [
        {
          "$ref": "#/$defs/Metadata"
        }
      ]
    }
  },
  "additionalProperties": false,
  "$defs": {
    "KwalifikacjaZawodowa": {
      "type": "object",
      "properties": {
        "dataEgzaminu": {
          "type": "string",
          "format": "date"
        },
        "dataUniewaznienia": {
          "type": "string",
          "format": "date"
        },
        "rodzajKwalifikacji": {
          "type": "integer",
          "format": "int32"
        },
        "zawod": {
          "type": "string"
        },
        "wydanyPrzez": {
          "type": "string"
        },
        "symbolZawodu": {
          "type": "string"
        },
        "wprowadzonyPrzez": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "Metadata": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "language": {
          "type": "string"
        },
        "rights": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "provider": {
          "type": "string"
        },
        "datePublished": {
          "type": "string",
          "format": "date-time"
        },
        "dateModified": {
          "type": "string",
          "format": "date-time"
        },
        "expires": {
          "type": "string",
          "format": "date-time"
        },
        "keywords": {
          "type": "string"
        },
        "temporalCoverage": {
          "type": "string"
        },
        "contentType": {
          "type": "string"
        },
        "isPartOf": {
          "type": "string"
        },
        "updateFrequency": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "Ograniczenie": {
      "type": "object",
      "properties": {
        "dataOd": {
          "type": "string",
          "format": "date"
        },
        "dataDo": {
          "type": "string",
          "format": "date"
        },
        "nazwa": {
          "type": "string"
        },
        "opis": {
          "type": "string"
        },
        "wprowadzonePrzez": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "Uprawnienie": {
      "type": "object",
      "properties": {
        "dataOd": {
          "type": "string",
          "format": "date"
        },
        "dataDo": {
          "type": "string",
          "format": "date"
        },
        "nazwa": {
          "type": "string"
        },
        "opis": {
          "type": "string"
        },
        "wprowadzonePrzez": {
          "type": "string"
        }
      },
      "additionalProperties": false
    }
  }
}