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
After doing additional verification work with the BinaryMediaTypes property and the fix implemented in #954, I found that the fix still contains an issue.
The BinaryMediaTypes property requires encoded values, so image/gif should be passed to this property as image~1gif.
The x-amazon-apigateway-binary-media-types swagger property cannot read the encoded value, and so the values should be passed to it as image/gif.
Steps to reproduce the issue:
Deploy an API with a binary media type in encoded format
Verify API deployed correctly
Deploy API again, updating BMT section with an additional media type
Verify that the new media type is deployed correctly, but the old type (sometimes) is switched from using a / to using the encoded value (~1) which is incorrect.
Fix: replace ~1 with / for x-amazon-apigateway-binary-media-types property.
The text was updated successfully, but these errors were encountered:
Description:
After doing additional verification work with the BinaryMediaTypes property and the fix implemented in #954, I found that the fix still contains an issue.
The
BinaryMediaTypes
property requires encoded values, soimage/gif
should be passed to this property asimage~1gif
.The
x-amazon-apigateway-binary-media-types
swagger property cannot read the encoded value, and so the values should be passed to it asimage/gif
.Steps to reproduce the issue:
/
to using the encoded value (~1
) which is incorrect.Fix: replace
~1
with/
forx-amazon-apigateway-binary-media-types
property.The text was updated successfully, but these errors were encountered: