{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/naturkompass24-de/json-schema/naturkompass24-de-aenderung-detail-schema.json",
  "title": "AenderungDetail",
  "x-generated": "2026-11-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/naturkompass24-de-openapi.json#/components/schemas/AenderungDetail",
  "type": "object",
  "required": [
    "objekt",
    "fassung",
    "register_stand",
    "id",
    "bereich",
    "verfahren",
    "feld",
    "wert_vorher",
    "wert_nachher",
    "anlass",
    "klasse",
    "erkannt_am",
    "veroeffentlicht_am",
    "schnittstelle",
    "gegenstand_id",
    "quelle"
  ],
  "properties": {
    "objekt": {
      "type": "string",
      "enum": [
        "aenderung"
      ],
      "description": "Was diese Antwort ist."
    },
    "fassung": {
      "type": "string",
      "enum": [
        "v1"
      ]
    },
    "register_stand": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "id": {
      "type": "integer",
      "minimum": 0
    },
    "bereich": {
      "type": "string",
      "enum": [
        "verfahren",
        "erstattung",
        "evidenz",
        "tarif",
        "quelle",
        "bonus"
      ]
    },
    "verfahren": {
      "type": [
        "string",
        "null"
      ]
    },
    "feld": {
      "type": "string"
    },
    "wert_vorher": {
      "type": [
        "string",
        "null"
      ]
    },
    "wert_nachher": {
      "type": [
        "string",
        "null"
      ]
    },
    "anlass": {
      "type": "string"
    },
    "klasse": {
      "type": "string",
      "enum": [
        "gruen",
        "gelb",
        "rot"
      ]
    },
    "erkannt_am": {
      "type": "string"
    },
    "veroeffentlicht_am": {
      "type": [
        "string",
        "null"
      ],
      "description": "null heisst: noch nicht veroeffentlicht."
    },
    "schnittstelle": {
      "type": "string"
    },
    "gegenstand_id": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "description": "Die Kennnummer der geaenderten Zeile in ihrem Bereich, sofern erfasst."
    },
    "quelle": {
      "type": [
        "object",
        "null"
      ],
      "required": [
        "id",
        "art",
        "bezeichnung",
        "url",
        "autoritaet",
        "schnittstelle"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "minimum": 0
        },
        "art": {
          "type": "string"
        },
        "bezeichnung": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "autoritaet": {
          "type": "string"
        },
        "schnittstelle": {
          "type": "string"
        }
      }
    }
  }
}