Skip to content

Commit

Permalink
Quick bugfix.
Browse files Browse the repository at this point in the history
  • Loading branch information
tanaya-mankad committed Dec 15, 2023
1 parent c33c422 commit 1754b54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lattice/schema_to_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ def postvalidate_references(input_file: Path, input_schema: Path):
level for level in ref.split(".") if level not in ["properties", "items"]
]
reference_scope = get_reference_value(data, lineage)
if reference_scope is not None and reference_scope not in ids:
if reference_scope and reference_scope not in ids:
raise ValueError(
f"Scope mismatch in {input_file}; {reference_scope} not in ID scope list {ids}."
)
Expand Down

0 comments on commit 1754b54

Please sign in to comment.