Skip to content

Commit

Permalink
Add unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
koxudaxi committed Oct 22, 2023
1 parent 753d7ca commit 57f82ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datamodel_code_generator/parser/jsonschema.py
Original file line number Diff line number Diff line change
Expand Up @@ -1664,7 +1664,7 @@ def _parse_file(
# parse $id before parsing $ref
root_obj = JsonSchemaObject.parse_obj(raw)
self.parse_id(root_obj, path_parts)
definitions: Optional[Dict[str, Any]] = None
definitions: Optional[Dict[Any, Any]] = None
for schema_path, split_schema_path in self.schema_paths:
try:
definitions = get_model_by_path(raw, split_schema_path)
Expand Down

0 comments on commit 57f82ab

Please sign in to comment.