yndlingsfar / serverless-openapi-integration-helper

The plugin separates x-amazon-apigateway extension syntax from your openapi3 files
MIT License
6 stars 5 forks source link

Use contentHandling: CONVERT_TO_TEXT for CORS mock integrations #23

Closed henhal closed 1 year ago

henhal commented 1 year ago

If an API uses contentHandling: CONVERT_TO_BINARY anywhere, the generated mock integrations for CORS would fail with a 500 error.

This turned out to be due to a missing CONVERT_TO_BINARY attribute. Ref: https://github.com/vendia/serverless-express/issues/58#issuecomment-303193847

henhal commented 1 year ago

Partially fixes #20