Skip to content

Commit 94fa5cc

Browse files
authored
🔥JSON-Schemas: Remove Geschaeftsobjekt.json and COM.json (#709)
1 parent 2551f82 commit 94fa5cc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎generate_or_validate_json_schemas.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ def get_namespace(packages: list[str]) -> dict[str, tuple[str, str, PARSABLE_CLA
8383
"""
8484
Builds a dictionary with the classnames as keys and their module as tuples in the values. E.g.:
8585
{
86-
"Geschaeftsobjekt": ("bo", "geschaeftsobjekt"),
87-
"COM": ("com", "com"),
86+
"Angebot": ("bo", "angebot"),
87+
"Adresse": ("com", "adresse"),
8888
...
8989
}
9090
This function filters out all classes which names begin with an underscore.
@@ -202,6 +202,8 @@ def generate_or_validate_json_schemas(mode: Literal["validate", "generate"], tar
202202

203203
namespace = get_namespace(packages)
204204
namespace[ZusatzAttribut.__name__] = ("", "zusatzattribut", ZusatzAttribut)
205+
del namespace["Geschaeftsobjekt"]
206+
del namespace["COM"]
205207

206208
for name, (pkg, _, cls) in namespace.items():
207209
_logger.debug("Processing %s", name)

0 commit comments

Comments
 (0)