Kaynağa Gözat

Schema nullalbe

Leonard Schulz 1 yıl önce
ebeveyn
işleme
5055cca1c9

+ 37 - 38
src/main/resources/schemas/haushalt-einkommen.schema.json

@@ -54,7 +54,7 @@
           "type": "string"
         },
         "antragstellerGeburtsdatum": {
-          "type": "string",
+          "type": ["string", "null"],
           "format": "date"
         },
         "anschrift": {
@@ -93,11 +93,11 @@
           "type": "string"
         },
         "vorgangstyp": {
-          "type": "string",
+          "type": ["string", "null"],
           "description": "Typ des Vorgangs (Ersatz für bemerkung)"
         },
         "vorgangsstatus": {
-          "type": "string",
+          "type": ["string", "null"],
           "description": "Status des Vorgangs"
         }
       },
@@ -108,20 +108,20 @@
       "additionalProperties": false,
       "properties": {
         "strasse": {
-          "type": "string"
+          "type": ["string", "null"]
         },
         "hausnummer": {
-          "type": "string"
+          "type": ["string", "null"]
         },
         "zusatz": {
-          "type": "string"
+          "type": ["string", "null"]
         },
         "plz": {
-          "type": "string",
+          "type": ["string", "null"],
           "pattern": "^[0-9]{5}$"
         },
         "ort": {
-          "type": "string"
+          "type": ["string", "null"]
         }
       }
     },
@@ -140,80 +140,80 @@
           "type": "string"
         },
         "geburtsname": {
-          "type": "string"
+          "type": ["string", "null"]
         },
         "alterName": {
-          "type": "string",
+          "type": ["string", "null"],
           "description": "Alter Name der Person"
         },
         "titel": {
-          "type": "string",
+          "type": ["string", "null"],
           "description": "Akademische Titel oder Anreden"
         },
         "anrede": {
-          "type": "string",
+          "type": ["string", "null"],
           "description": "Anrede (Herr, Frau, etc.)"
         },
         "geburtsdatum": {
-          "type": "string",
+          "type": ["string", "null"],
           "format": "date"
         },
         "sterbedatum": {
-          "type": "string",
+          "type": ["string", "null"],
           "format": "date",
           "description": "Sterbedatum falls verstorben"
         },
         "geburtsort": {
-          "type": "string",
+          "type": ["string", "null"],
           "description": "Geburtsort der Person"
         },
         "geschlecht": {
-          "type": "string"
+          "type": ["string", "null"]
         },
         "telefon": {
-          "type": "string"
+          "type": ["string", "null"]
         },
         "email": {
-          "type": "string",
+          "type": ["string", "null"],
           "format": "email"
         },
         "familienstand": {
-          "type": "string",
+          "type": ["string", "null"],
           "description": "z.B. ledig, verheiratet, geschieden, verwitwet"
         },
         "verwandtschaftsverhaeltnis": {
-          "type": "string",
+          "type": ["string", "null"],
           "description": "Beziehung zum/ zur Antragstellenden in diesem Zeitraum"
         },
         "ausschlussgrund": {
-          "type": "string",
+          "type": ["string", "null"],
           "description": "Grund für Ausschluss aus der Bedarfsgemeinschaft"
         },
         "blockname": {
-          "type": "boolean",
+          "type": ["boolean", "null"],
           "description": "Checkbox für Blockname"
         },
         "aktenzeichenSozial": {
-          "type": "string",
+          "type": ["string", "null"],
           "description": "Aktenzeichen des Sozialamtes"
         },
         "sozialstellung": {
-          "type": "string"
+          "type": ["string", "null"]
         },
         "aufenthaltstitelEnde": {
-          "type": "string",
+          "type": ["string", "null"],
           "format": "date"
         },
         "antragsteller": {
-          "type": "boolean",
+          "type": ["boolean", "null"],
           "description": "Checkbox für Antragsteller"
         },
         "zahlungsempfaenger": {
-          "type": "boolean",
+          "type": ["boolean", "null"],
           "description": "Checkbox für Zahlungsempfänger"
         },
         "postabrutionsnummer": {
-          "type": "string",
+          "type": ["string", "null"],
           "description": "Postabrutionsnummer der Person"
         }
       },
@@ -235,10 +235,10 @@
           "description": "Einkommensart (z.B. Erwerb, Rente, Unterhalt)"
         },
         "artZusatz": {
-          "type": "string"
+          "type": ["string", "null"]
         },
         "faktor": {
-          "type": "number",
+          "type": ["number", "null"],
           "description": "Faktor: 1 für jährlich, 12 für monatlich, etc."
         },
         "betrag": {
@@ -246,15 +246,15 @@
           "minimum": 0
         },
         "werbungskosten": {
-          "type": "number",
+          "type": ["number", "null"],
           "minimum": 0
         },
         "zuschlag": {
-          "type": "number",
+          "type": ["number", "null"],
           "minimum": 0
         },
         "abschlag": {
-          "type": "number",
+          "type": ["number", "null"],
           "minimum": 0
         }
       },
@@ -281,7 +281,7 @@
           "description": "z.B. Erwerbstätigenfreibetrag, Alleinerziehendenfreibetrag"
         },
         "faktor": {
-          "type": "number",
+          "type": ["number", "null"],
           "description": "Faktor: 1 für jährlich, 12 für monatlich, etc."
         },
         "betrag": {
@@ -289,12 +289,11 @@
           "minimum": 0
         },
         "fristDatum": {
-          "type": "string",
+          "type": ["string", "null"],
           "format": "date"
         },
         "verglRechnungJN": {
-          "type": "string",
-          "maxLength": 1
+          "type": ["string", "null"]
         }
       },
       "required": [
@@ -368,7 +367,7 @@
           "format": "date"
         },
         "ende": {
-          "type": "string",
+          "type": ["string", "null"],
           "format": "date"
         },
         "personen": {

+ 66 - 75
src/main/resources/schemas/miete.schema.json

@@ -54,7 +54,7 @@
           "type": "string"
         },
         "antragstellerGeburtsdatum": {
-          "type": "string",
+          "type": ["string", "null"],
           "format": "date"
         },
         "anschrift": {
@@ -93,11 +93,11 @@
           "type": "string"
         },
         "vorgangstyp": {
-          "type": "string",
+          "type": ["string", "null"],
           "description": "Typ des Vorgangs (Ersatz für bemerkung)"
         },
         "vorgangsstatus": {
-          "type": "string",
+          "type": ["string", "null"],
           "description": "Status des Vorgangs"
         }
       },
@@ -108,20 +108,20 @@
       "additionalProperties": false,
       "properties": {
         "strasse": {
-          "type": "string"
+          "type": ["string", "null"]
         },
         "hausnummer": {
-          "type": "string"
+          "type": ["string", "null"]
         },
         "zusatz": {
-          "type": "string"
+          "type": ["string", "null"]
         },
         "plz": {
-          "type": "string",
+          "type": ["string", "null"],
           "pattern": "^[0-9]{5}$"
         },
         "ort": {
-          "type": "string"
+          "type": ["string", "null"]
         }
       }
     },
@@ -134,141 +134,141 @@
           "description": "Miete ID"
         },
         "miete": {
-          "type": "number",
+          "type": ["number", "null"],
           "minimum": 0,
           "description": "Miete Betrag"
         },
         "mieteAlt": {
-          "type": "number",
+          "type": ["number", "null"],
           "minimum": 0,
           "description": "Alte Miete"
         },
         "sonstZuschlag": {
-          "type": "number",
+          "type": ["number", "null"],
           "minimum": 0,
           "description": "Sonstiger Zuschlag"
         },
         "beitragDritter": {
-          "type": "number",
+          "type": ["number", "null"],
           "minimum": 0,
           "description": "Beitrag Dritter"
         },
         "heizung": {
-          "type": "number",
+          "type": ["number", "null"],
           "minimum": 0,
           "description": "Heizung Betrag"
         },
         "heizungP": {
-          "type": "string",
+          "type": ["string", "null"],
           "description": "Heizung Beschreibung"
         },
         "warmwasser": {
-          "type": "number",
+          "type": ["number", "null"],
           "minimum": 0,
           "description": "Warmwasser Betrag"
         },
         "warmwasserP": {
-          "type": "string",
+          "type": ["string", "null"],
           "description": "Warmwasser Beschreibung"
         },
         "moeblierung": {
-          "type": "number",
+          "type": ["number", "null"],
           "minimum": 0,
           "description": "Möblierung Betrag"
         },
         "moeblierungP": {
-          "type": "string",
+          "type": ["string", "null"],
           "description": "Möblierung Beschreibung"
         },
         "umietZuschlag": {
-          "type": "number",
+          "type": ["number", "null"],
           "minimum": 0,
           "description": "Umiet Zuschlag"
         },
         "gewerbeZuschlag": {
-          "type": "number",
+          "type": ["number", "null"],
           "minimum": 0,
           "description": "Gewerbe Zuschlag"
         },
         "gewerbeZuschlagP": {
-          "type": "string",
+          "type": ["string", "null"],
           "description": "Gewerbe Zuschlag Beschreibung"
         },
         "gewerbeFlaeche": {
-          "type": "number",
+          "type": ["number", "null"],
           "minimum": 0,
           "description": "Gewerbe Fläche"
         },
         "jhrlFernwarmw": {
-          "type": "number",
+          "type": ["number", "null"],
           "minimum": 0,
           "description": "Jährlich Fernwarmwasser"
         },
         "jhrlFernwaerme": {
-          "type": "number",
+          "type": ["number", "null"],
           "minimum": 0,
           "description": "Jährlich Fernwärme"
         },
         "antMietWw": {
-          "type": "number",
+          "type": ["number", "null"],
           "minimum": 0,
           "description": "Anteil Miete Warmwasser"
         },
         "antBrutWw": {
-          "type": "number",
+          "type": ["number", "null"],
           "minimum": 0,
           "description": "Anteil Brutto Warmwasser"
         },
         "jhrlFernWUndW": {
-          "type": "number",
+          "type": ["number", "null"],
           "minimum": 0,
           "description": "Jährlich Fernwärme und Warmwasser"
         },
         "lstgAufenthaltPerson": {
-          "type": "number",
+          "type": ["number", "null"],
           "minimum": 0,
           "description": "Leistung Aufenthalt Person"
         },
         "sonstWogFaehigBetrag": {
-          "type": "number",
+          "type": ["number", "null"],
           "minimum": 0,
           "description": "Sonstiger wohnungsfähiger Betrag"
         },
         "sonstWogFaehigText": {
-          "type": "string",
+          "type": ["string", "null"],
           "description": "Sonstiger wohnungsfähiger Text"
         },
         "sonstZuschlagBeschr": {
-          "type": "string",
+          "type": ["string", "null"],
           "description": "Sonstiger Zuschlag Beschreibung"
         },
         "energie": {
-          "type": "number",
+          "type": ["number", "null"],
           "minimum": 0,
           "description": "Energie Betrag"
         },
         "energieP": {
-          "type": "string",
+          "type": ["string", "null"],
           "description": "Energie Beschreibung"
         },
         "stellplatz": {
-          "type": "number",
+          "type": ["number", "null"],
           "minimum": 0,
           "description": "Stellplatz Betrag"
         },
         "stellplatzP": {
-          "type": "string",
+          "type": ["string", "null"],
           "description": "Stellplatz Beschreibung"
         },
         "untermieter": {
-          "type": "array",
+          "type": ["array", "null"],
           "items": {
             "$ref": "#/$defs/Untermieter"
           },
           "description": "Liste der Untermieter"
         },
         "mitbewohner": {
-          "type": "array",
+          "type": ["array", "null"],
           "items": {
             "$ref": "#/$defs/Mitbewohner"
           },
@@ -300,44 +300,44 @@
           "description": "Vorname des Untermieters"
         },
         "flaeche": {
-          "type": "number",
+          "type": ["number", "null"],
           "minimum": 0,
           "description": "Fläche"
         },
         "miete": {
-          "type": "number",
+          "type": ["number", "null"],
           "minimum": 0,
           "description": "Miete des Untermieters"
         },
         "heizung": {
-          "type": "number",
+          "type": ["number", "null"],
           "minimum": 0,
           "description": "Heizung Betrag"
         },
         "heizungP": {
-          "type": "string",
+          "type": ["string", "null"],
           "description": "Heizung Beschreibung"
         },
         "warmwasser": {
-          "type": "number",
+          "type": ["number", "null"],
           "minimum": 0,
           "description": "Warmwasser Betrag"
         },
         "warmwasserP": {
-          "type": "string",
+          "type": ["string", "null"],
           "description": "Warmwasser Beschreibung"
         },
         "moeblierung": {
-          "type": "number",
+          "type": ["number", "null"],
           "minimum": 0,
           "description": "Möblierung Betrag"
         },
         "moeblierungP": {
-          "type": "string",
+          "type": ["string", "null"],
           "description": "Möblierung Beschreibung"
         },
         "sonst": {
-          "type": "number",
+          "type": ["number", "null"],
           "minimum": 0,
           "description": "Sonstiges"
         }
@@ -367,30 +367,30 @@
           "description": "Vorname des Mitbewohners"
         },
         "entgelt": {
-          "type": "number",
+          "type": ["number", "null"],
           "minimum": 0,
           "description": "Entgelt"
         },
         "heizung": {
-          "type": "number",
+          "type": ["number", "null"],
           "minimum": 0,
           "description": "Heizung Betrag"
         },
         "heizungP": {
-          "type": "string",
+          "type": ["string", "null"],
           "description": "Heizung Beschreibung"
         },
         "warmwasser": {
-          "type": "number",
+          "type": ["number", "null"],
           "minimum": 0,
           "description": "Warmwasser Betrag"
         },
         "warmwasserP": {
-          "type": "string",
+          "type": ["string", "null"],
           "description": "Warmwasser Beschreibung"
         },
         "sonst": {
-          "type": "number",
+          "type": ["number", "null"],
           "minimum": 0,
           "description": "Sonstiges"
         }
@@ -402,67 +402,58 @@
       "additionalProperties": false,
       "properties": {
         "id": {
-          "type": "integer",
-          "minimum": 0,
-          "maximum": 999999999,
+          "type": "string",
           "description": "ID NUMBER(9,0)"
         },
         "flaeche": {
-          "type": "number",
+          "type": ["number", "null"],
           "minimum": 0,
           "maximum": 999.99,
           "description": "Fläche NUMBER(5,2)"
         },
         "heizung": {
-          "type": "string",
-          "maxLength": 2,
+          "type": ["string", "null"],
           "description": "Heizung VARCHAR2(2 BYTE)"
         },
         "bad": {
-          "type": "string",
-          "maxLength": 1,
+          "type": ["string", "null"],
           "description": "Bad VARCHAR2(1 BYTE)"
         },
         "sozBauJn": {
-          "type": "boolean",
+          "type": ["boolean", "null"],
           "description": "Sozialer Wohnungsbau Ja/Nein - behandelt als Boolean"
         },
         "mietverhaeltnis": {
-          "type": "string",
-          "maxLength": 2,
+          "type": ["string", "null"],
           "description": "Mietverhältnis VARCHAR2(2 BYTE)"
         },
         "eigentum": {
-          "type": "string",
-          "maxLength": 3,
+          "type": ["string", "null"],
           "description": "Eigentum VARCHAR2(3 BYTE)"
         },
         "fertigDat": {
-          "type": "string",
+          "type": ["string", "null"],
           "format": "date",
           "description": "Fertigstellungsdatum DATE"
         },
         "nameEig": {
-          "type": "string",
-          "maxLength": 40,
+          "type": ["string", "null"],
           "description": "Name Eigentümer VARCHAR2(40 BYTE)"
         },
         "adresseEig": {
-          "type": "string",
-          "maxLength": 100,
+          "type": ["string", "null"],
           "description": "Adresse Eigentümer VARCHAR2(100 BYTE)"
         },
         "telefonEig": {
-          "type": "string",
-          "maxLength": 15,
+          "type": ["string", "null"],
           "description": "Telefon Eigentümer VARCHAR2(15 BYTE)"
         },
         "wofgJn": {
-          "type": "boolean",
+          "type": ["boolean", "null"],
           "description": "WOFG Ja/Nein - behandelt als Boolean"
         },
         "foerderungJn": {
-          "type": "boolean",
+          "type": ["boolean", "null"],
           "description": "Förderung Ja/Nein - behandelt als Boolean"
         }
       },
@@ -480,7 +471,7 @@
           "format": "date"
         },
         "ende": {
-          "type": "string",
+          "type": ["string", "null"],
           "format": "date"
         },
         "miete": {