Open DylanVerstraete opened 10 months ago
+1 for the same question, how to specify file upload via multipart form
+1 for this question. This is important because, with actix_multipart it doesn't work without specifying "application/json".
Unfortunately encoding does need to be defined manually by editing the OpenAPI spec path for the handler. Currently there is no implementation in #[utoipa::path()]
macro to define Encoding
. Though support for this could be added in future releases.
I don't understand how the Encoding struct can be used to add specific encoding to a schema.
For example I have this struct:
How can I add custom encoding for metadata so that metadata using
application/json
encoding?See: https://swagger.io/docs/specification/describing-request-body/multipart-requests/
Specifically (Specifying Content-Type)