Skip to content

Commit

Permalink
default to empty dict
Browse files Browse the repository at this point in the history
  • Loading branch information
joellabes committed Jan 24, 2024
1 parent b5bfc9c commit 834ab17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/validate_plusless_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def check_equivalency(key, node_type, node_properties):
with open(filepath, "r") as f:
data = json.load(f)
for node_type in node_types:
node_properties = data["$defs"].get(node_type).get("properties")
node_properties = data["$defs"].get(node_type, {}).get("properties", {})
for key in node_properties.keys():
check_equivalency(key, node_type, node_properties)

Expand Down

0 comments on commit 834ab17

Please sign in to comment.