{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oqda-de/json-schema/oqda-de-katalog-schema.json",
  "title": "Katalog",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oqda-de-openapi.json#/components/schemas/Katalog",
  "type": "object",
  "required": [
    "name",
    "module",
    "kern",
    "pakete",
    "konditionen",
    "branchen",
    "grenzen",
    "warteliste",
    "kontakt"
  ],
  "properties": {
    "name": {
      "type": "string"
    },
    "beschreibung": {
      "type": "string"
    },
    "sprache": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "waehrung": {
      "type": "string",
      "const": "EUR"
    },
    "preisHinweis": {
      "type": "string"
    },
    "module": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Modul"
      }
    },
    "kern": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "slug",
          "name",
          "lead",
          "url"
        ],
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "kurz": {
            "type": "string"
          },
          "lead": {
            "type": "string"
          },
          "gutZuWissen": {
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    },
    "pakete": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "preis",
          "standorte",
          "leistungen"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "fuer": {
            "type": "string"
          },
          "preis": {
            "type": [
              "number",
              "null"
            ],
            "description": "EUR je Standort und Monat, zzgl. MwSt.; null = individuell."
          },
          "standorte": {
            "type": "string"
          },
          "leistungen": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    "summeEinzeln": {
      "type": "number"
    },
    "konditionen": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "verbrauch": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "was": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        }
      }
    },
    "branchen": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "slug",
          "name",
          "url"
        ],
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "satz": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    },
    "ersetzt": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "werkzeug": {
            "type": "string"
          },
          "funktion": {
            "type": "string"
          },
          "modul": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    },
    "grenzen": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "thema": {
            "type": "string"
          },
          "de": {
            "type": "string"
          },
          "en": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      }
    },
    "warteliste": {
      "type": "object",
      "required": [
        "einwilligung",
        "betriebe",
        "standorte",
        "api"
      ],
      "properties": {
        "einwilligung": {
          "type": "string"
        },
        "betriebe": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "standorte": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "api": {
          "type": "string",
          "format": "uri"
        },
        "mcpTool": {
          "type": "string"
        },
        "ablauf": {
          "type": "string"
        }
      }
    },
    "kontakt": {
      "type": "object",
      "properties": {
        "email": {
          "type": "string",
          "format": "email"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "api": {
          "type": "string",
          "format": "uri"
        },
        "mcpTool": {
          "type": "string"
        }
      }
    },
    "agenten": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "format": "uri"
      }
    }
  },
  "$defs": {
    "Funktion": {
      "type": "object",
      "required": [
        "slug",
        "name",
        "kurz",
        "lead",
        "kann",
        "url"
      ],
      "properties": {
        "slug": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "kurz": {
          "type": "string"
        },
        "lead": {
          "type": "string"
        },
        "kann": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "gutZuWissen": {
          "type": [
            "string",
            "null"
          ],
          "description": "Grenzen der Funktion, ehrlich benannt."
        },
        "bald": {
          "type": "boolean",
          "description": "Gebaut, aber noch nicht für alle freigeschaltet."
        },
        "url": {
          "type": "string",
          "format": "uri"
        }
      }
    },
    "Modul": {
      "type": "object",
      "required": [
        "slug",
        "name",
        "titel",
        "kurz",
        "lead",
        "preis",
        "url",
        "funktionen"
      ],
      "properties": {
        "slug": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "titel": {
          "type": "string"
        },
        "kurz": {
          "type": "string"
        },
        "lead": {
          "type": "string"
        },
        "fuer": {
          "type": "string"
        },
        "preis": {
          "type": "number",
          "description": "Einzelpreis in EUR je Standort und Monat, zzgl. MwSt."
        },
        "preisZusatz": {
          "type": [
            "string",
            "null"
          ]
        },
        "preisHinweis": {
          "type": [
            "string",
            "null"
          ]
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "funktionen": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Funktion"
          }
        }
      }
    }
  }
}