Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions generate_or_validate_json_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ def get_namespace(packages: list[str]) -> dict[str, tuple[str, str, PARSABLE_CLA
"""
Builds a dictionary with the classnames as keys and their module as tuples in the values. E.g.:
{
"Geschaeftsobjekt": ("bo", "geschaeftsobjekt"),
"COM": ("com", "com"),
"Angebot": ("bo", "angebot"),
"Adresse": ("com", "adresse"),
...
}
This function filters out all classes which names begin with an underscore.
Expand Down Expand Up @@ -202,6 +202,8 @@ def generate_or_validate_json_schemas(mode: Literal["validate", "generate"], tar

namespace = get_namespace(packages)
namespace[ZusatzAttribut.__name__] = ("", "zusatzattribut", ZusatzAttribut)
del namespace["Geschaeftsobjekt"]
del namespace["COM"]

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