You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[SchemaValidationMiddleware](/lambda/python/latest/api/event_handler/middlewares/schema_validation.html){target="_blank"} | Validates API request body and response against JSON Schema, using [Validation utility](../../utilities/validation.md){target="_blank"} |
579
579
580
580
#### Being a good citizen
@@ -648,15 +648,15 @@ You can compress with gzip and base64 encode your responses via `compress` param
648
648
649
649
### Binary responses
650
650
651
+
???+ warning "Amazon API Gateway does not support `*/*` binary media type [when CORS is also configured](https://github.com/aws-powertools/powertools-lambda-python/issues/3373#issuecomment-1821144779){target='blank'}."
652
+
This feature requires API Gateway to configure binary media types, see [our sample infrastructure](#required-resources) for reference.
653
+
651
654
For convenience, we automatically base64 encode binary responses. You can also use in combination with `compress` parameter if your client supports gzip.
652
655
653
656
Like `compress` feature, the client must send the `Accept` header with the correct media type.
654
657
655
-
???+ warning
656
-
This feature requires API Gateway to configure binary media types, see [our sample infrastructure](#required-resources) for reference.
658
+
!!! note "Lambda Function URLs handle binary media types automatically."
657
659
658
-
???+ note
659
-
Lambda Function URLs handle binary media types automatically.
0 commit comments