Skip to content

Commit b251826

Browse files
committed
Fix error analyzer
1 parent a9754a1 commit b251826

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pdl/pdl_schema_error_analyzer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ def analyze_errors(defs, schema, data, loc: LocationType) -> list[str]: # noqa:
134134
the_type = convert_to_json_type(type(data))
135135
the_type_exists = False
136136
for item in schema["anyOf"]:
137+
if item == {}:
138+
the_type_exists = True
137139
if "type" in item and item["type"] == the_type:
138140
the_type_exists = True
139141
if "enum" in item and data in item["enum"]:

0 commit comments

Comments
 (0)