We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5c0464 commit 96372b1Copy full SHA for 96372b1
aws_lambda_powertools/event_handler/openapi/params.py
@@ -849,11 +849,12 @@ def __init__(
849
**extra: Any,
850
):
851
# For file uploads, ensure the OpenAPI schema has the correct format
852
- file_schema_extra = {"format": "binary"}
853
- if json_schema_extra:
854
- json_schema_extra.update(file_schema_extra)
855
- else:
856
- json_schema_extra = file_schema_extra
+ # Also we can't test it
+ file_schema_extra = {"format": "binary"} # pragma: no cover
+ if json_schema_extra: # pragma: no cover
+ json_schema_extra.update(file_schema_extra) # pragma: no cover
+ else: # pragma: no cover
857
+ json_schema_extra = file_schema_extra # pragma: no cover
858
859
super().__init__(
860
default=default,
0 commit comments