Skip to content

Commit 97bf962

Browse files
committed
Solved errors from testing
1 parent 97b4a91 commit 97bf962

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bam_masterdata/checker/masterdata_validator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,9 @@ def _validate_model(self, model: dict) -> dict:
212212

213213
# Validate 'terms' (only for vocabulary_types)
214214
if (
215-
entity_type in ["vocabulary_types", "vocabulary_type"]
216-
and "terms" in entity_data
217-
):
215+
entity_type == "vocabulary_types"
216+
or entity_type == "vocabulary_type"
217+
) and "terms" in entity_data:
218218
for term in entity_data["terms"]:
219219
row_location = term.get("row_location", "Unknown")
220220
self._validate_fields(

0 commit comments

Comments
 (0)