From 1754b5421dc715a955adeefe61fccd356eee1bf7 Mon Sep 17 00:00:00 2001 From: Tanaya Mankad Date: Fri, 15 Dec 2023 15:20:00 -0700 Subject: [PATCH] Quick bugfix. --- lattice/schema_to_json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lattice/schema_to_json.py b/lattice/schema_to_json.py index 070f31a..243c652 100644 --- a/lattice/schema_to_json.py +++ b/lattice/schema_to_json.py @@ -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}." )