Hi team,
When I set per-field Content-Type for a multipart/form-data request body (e.g. foo: application/json, bar: image/jpeg, baz: text/plain), the OpenAPI export (YAML/JSON) only emits encoding for the last field. The earlier fields’ contentType entries are missing.
Acctual
"requestBody": {
"content": {
"multipart/form-data": {
"encoding": {
"baz": { "contentType": "text/plain" }
},
"schema": {
"type": "object",
"properties": {
"foo": { "type": "string", "example": "" },
"bar": { "type": "string", "example": "" },
"baz": { "type": "string", "example": "" }
}
}
}
}
}
Expected
"encoding": {
"foo": { "contentType": "application/json" },
"bar": { "contentType": "image/jpeg" },
"baz": { "contentType": "text/plain" }
}
Env
Apidog(Mac), 2.7.33
