smithy
smithy copied to clipboard
RestJSON Blob without media type
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
Can you elaborate? I’m not sure what you’re trying to do or asking for.
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.