Skip to content

Commit

Permalink
Generate JSON Schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
hf-aschloegl committed Oct 9, 2023
1 parent f72cf53 commit 453268d
Show file tree
Hide file tree
Showing 9 changed files with 1,704 additions and 3 deletions.
377 changes: 377 additions & 0 deletions json_schemas/bo/Messlokation.json

Large diffs are not rendered by default.

356 changes: 356 additions & 0 deletions json_schemas/bo/PreisblattMessung.json

Large diffs are not rendered by default.

377 changes: 377 additions & 0 deletions json_schemas/bo/Zaehler.json

Large diffs are not rendered by default.

76 changes: 76 additions & 0 deletions json_schemas/com/Konzessionsabgabe.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"$defs": {
"AbgabeArt": {
"description": "Art der Konzessionsabgabe",
"enum": [
"KAS",
"SA",
"SAS",
"TA",
"TAS",
"TK",
"TKS",
"TS",
"TSS"
],
"title": "AbgabeArt",
"type": "string"
}
},
"additionalProperties": true,
"description": "Diese Komponente wird zur Übertagung der Details zu einer Konzessionsabgabe verwendet.\n\n.. raw:: html\n\n <object data=\"../_static/images/bo4e/com/Konzessionsabgabe.svg\" type=\"image/svg+xml\"></object>\n\n.. HINT::\n `Konzessionsabgabe JSON Schema <https://json-schema.app/view/%23?url=https://raw.githubusercontent.com/Hochfrequenz/BO4E-python/main/json_schemas/com/Konzessionsabgabe.json>`_",
"properties": {
"_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": " Id"
},
"kategorie": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Kategorie"
},
"kosten": {
"anyOf": [
{
"type": "number"
},
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Kosten"
},
"satz": {
"anyOf": [
{
"$ref": "#/$defs/AbgabeArt"
},
{
"type": "null"
}
],
"default": null
}
},
"title": "Konzessionsabgabe",
"type": "object"
}
82 changes: 82 additions & 0 deletions json_schemas/com/Verwendungszweck.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
"$defs": {
"Marktrolle": {
"description": "Diese Rollen kann ein Marktteilnehmer einnehmen.",
"enum": [
"NB",
"LF",
"MSB",
"DL",
"BKV",
"BKO",
"UENB",
"KUNDE_SELBST_NN",
"MGV",
"EIV",
"RB",
"KUNDE",
"INTERESSENT",
"BTR"
],
"title": "Marktrolle",
"type": "string"
},
"Verwendungszweck": {
"description": "Verwendungungszweck der Werte Marktlokation",
"enum": [
"NETZNUTZUNGSABRECHNUNG",
"BILANZKREISABRECHNUNG",
"MEHRMINDERMENGENABRECHNUNG",
"ENDKUNDENABRECHNUNG",
"UEBERMITTLUNG_AN_DAS_HKNR",
"ERMITTLUNG_AUSGEGLICHENHEIT_BILANZKREIS"
],
"title": "Verwendungszweck",
"type": "string"
}
},
"additionalProperties": true,
"description": "Verwendungungszweck der Werte Marktlokation\n\n.. raw:: html\n\n <object data=\"../_static/images/bo4e/com/Verwendungszweck.svg\" type=\"image/svg+xml\"></object>\n\n.. HINT::\n `Verwendungszweck JSON Schema <https://json-schema.app/view/%23?url=https://raw.githubusercontent.com/Hochfrequenz/BO4E-python/main/json_schemas/com/Verwendungszweck.json>`_",
"properties": {
"_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": " Id"
},
"marktrolle": {
"anyOf": [
{
"$ref": "#/$defs/Marktrolle"
},
{
"type": "null"
}
],
"default": null
},
"zwecke": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/Verwendungszweck"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Zwecke"
}
},
"title": "Verwendungszweck",
"type": "object"
}
Loading

0 comments on commit 453268d

Please sign in to comment.