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
Copy file name to clipboardExpand all lines: README.md
+4-2
Original file line number
Diff line number
Diff line change
@@ -130,8 +130,7 @@ func main() {
130
130
131
131
## Custom content type for body of HTTP request/response
132
132
133
-
By default, the library parses a body of the HTTP request and response
134
-
if it has one of the following content types: `"text/plain"` or `"application/json"`.
133
+
By default, the library parses a body of the HTTP request and response of [a few content types](https://github.com/getkin/kin-openapi/blob/6da871e0e170b7637eb568c265c08bc2b5d6e7a3/openapi3filter/req_resp_decoder.go#L1264) e.g. `"text/plain"` or `"application/json"`.
135
134
To support other content types you must register decoders for them:
136
135
137
136
```go
@@ -295,6 +294,9 @@ for _, path := range doc.Paths.InMatchingOrder() {
295
294
296
295
## CHANGELOG: Sub-v1 breaking API changes
297
296
297
+
### v0.131.0
298
+
* No longer `openapi3filter.RegisterBodyDecoder` the `openapi3filter.ZipFileBodyDecoder` by default.
299
+
298
300
### v0.129.0
299
301
*`openapi3.Discriminator.Mapping` and `openapi3.OAuthFlow.Scopes` fields went from a `map[string]string` to the new type `StringMap`
0 commit comments