Skip to content

Commit

Permalink
Fix API spec recursive schema def check
Browse files Browse the repository at this point in the history
  • Loading branch information
yugokato committed Jan 13, 2025
1 parent 27dbc9d commit 1320280
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/openapi_test_client/libraries/api/api_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@ def resolve_recursive(reference: Any, schemas_seen: list[str] = None):
else:
reference = resolved_value
else:
resolve_recursive(new_reference, schemas_seen=schemas_seen)
resolve_recursive(new_reference)
elif isinstance(reference, list):
for item in reference:
resolve_recursive(item, schemas_seen=schemas_seen)
resolve_recursive(item)
return reference

if has_reference(api_spec):
Expand Down

0 comments on commit 1320280

Please sign in to comment.