Skip to content

Commit a0dd00a

Browse files
committed
generalize body check with Param
1 parent 8aa6cae commit a0dd00a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

aws_lambda_powertools/event_handler/openapi/dependant.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@
1414
Body,
1515
Dependant,
1616
Form,
17-
Header,
1817
Param,
1918
ParamTypes,
20-
Query,
2119
_File,
2220
analyze_param,
2321
create_response_field,
@@ -274,7 +272,7 @@ def is_body_param(*, param_field: ModelField, is_path_param: bool) -> bool:
274272
return False
275273
elif is_scalar_field(field=param_field):
276274
return False
277-
elif isinstance(param_field.field_info, (Query, Header)):
275+
elif isinstance(param_field.field_info, Param):
278276
return False
279277
else:
280278
if not isinstance(param_field.field_info, Body):

0 commit comments

Comments
 (0)