-
-
Notifications
You must be signed in to change notification settings - Fork 483
Closed
Description
Hello, I implemented your library and I have when I upload a csv file. error in openapi3filter.RequestError: request body has an error: failed to decode request body: path file: unsupported content type "text/csv"
Could you also please register a body decoder for CSV files RegisterBodyDecoder("text/csv", csvBodyDecoder)
kin-openapi/openapi3filter/req_resp_decoder.go
Lines 999 to 1008 in 8718011
| func init() { | |
| RegisterBodyDecoder("text/plain", plainBodyDecoder) | |
| RegisterBodyDecoder("application/json", jsonBodyDecoder) | |
| RegisterBodyDecoder("application/x-yaml", yamlBodyDecoder) | |
| RegisterBodyDecoder("application/yaml", yamlBodyDecoder) | |
| RegisterBodyDecoder("application/problem+json", jsonBodyDecoder) | |
| RegisterBodyDecoder("application/x-www-form-urlencoded", urlencodedBodyDecoder) | |
| RegisterBodyDecoder("multipart/form-data", multipartBodyDecoder) | |
| RegisterBodyDecoder("application/octet-stream", FileBodyDecoder) | |
| } |
Any help is super appreciated!
Thanks in advanced and this is quite urgent.
Metadata
Metadata
Assignees
Labels
No labels