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
, I think currently content types for json besides application/json aren't supported
my use case is I'm trying reimplement an AWS api where the client uses a application/x-amz-json-1.0 header for json so being able to have a route take a custom json content type would be useful
edit: as a work around I think I could skip parsing the body as json, but then I'd lose the fancy open api stuff
The text was updated successfully, but these errors were encountered:
Thanks for filing the issue. Would the parsing of content with application/x-amz-json-1.0 be identical to that of application/json? Perhaps we can provide an interface that allows one to specify aliases for application/json.
looking through the code,
dropshot/dropshot/src/handler.rs
Lines 1018 to 1026 in 5063b8d
application/json
aren't supportedmy use case is I'm trying reimplement an AWS api where the client uses a
application/x-amz-json-1.0
header for json so being able to have a route take a custom json content type would be usefuledit: as a work around I think I could skip parsing the body as json, but then I'd lose the fancy open api stuff
The text was updated successfully, but these errors were encountered: