smithy icon indicating copy to clipboard operation
smithy copied to clipboard

RestJSON Blob without media type

Open 82marbag opened this issue 2 years ago • 2 comments

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

82marbag avatar Jun 07 '22 09:06 82marbag

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

mtdowling avatar Jun 07 '22 14:06 mtdowling

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.

adamthom-amzn avatar Jun 09 '22 18:06 adamthom-amzn