Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RestJSON Blob without media type #1259

Open
82marbag opened this issue Jun 7, 2022 · 2 comments
Open

RestJSON Blob without media type #1259

82marbag opened this issue Jun 7, 2022 · 2 comments
Labels
documentation This is a problem with documentation.

Comments

@82marbag
Copy link
Contributor

82marbag commented Jun 7, 2022

The response content type for payload blobs without @mediaType should be any (always allowed). This is not documented and not supported at the moment in https://github.com/awslabs/smithy/blob/df456a514f72f4e35f0fb07c7e26006ff03b2071/smithy-model/src/main/java/software/amazon/smithy/model/knowledge/HttpBindingIndex.java#L352-L384

@mtdowling
Copy link
Member

Can you elaborate? I’m not sure what you’re trying to do or asking for.

@adamthom-amzn
Copy link
Contributor

I talked to @82marbag offline about this - it's for requests, not responses, and it's a continuation of an internal discussion we had months ago where we are too prescriptive about the allowed content types of requests for blobs that don't have a mediaType trait. I owe at least a documentation update.

@mtdowling mtdowling added the documentation This is a problem with documentation. label Sep 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation This is a problem with documentation.
Projects
None yet
Development

No branches or pull requests

3 participants