Skip to content

Commit

Permalink
Fix #492 (#520)
Browse files Browse the repository at this point in the history
Co-authored-by: Micah Mangione <[email protected]>
  • Loading branch information
RobertoPrevato and mmangione authored Jan 16, 2025
1 parent b212cba commit f543741
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion blacksheep/server/openapi/v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,11 @@ def _get_array_outer_type(self, field_info):
except AttributeError:
# Pydantic v2
# Here we support only simple types
return List[field_info.annotation.__args__[0]]
return (
field_info.annotation
if type(field_info.annotation) is type
else List[field_info.annotation.__args__[0]]
)

def _get_fields_info(self, object_type):
try:
Expand Down

0 comments on commit f543741

Please sign in to comment.