Skip to content

Commit b003421

Browse files
authored
Add json patch support (#702)
1 parent c1219e3 commit b003421

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

openapi3filter/req_resp_decoder.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -999,6 +999,7 @@ func decodeBody(body io.Reader, header http.Header, schema *openapi3.SchemaRef,
999999
func init() {
10001000
RegisterBodyDecoder("text/plain", plainBodyDecoder)
10011001
RegisterBodyDecoder("application/json", jsonBodyDecoder)
1002+
RegisterBodyDecoder("application/json-patch+json", jsonBodyDecoder)
10021003
RegisterBodyDecoder("application/x-yaml", yamlBodyDecoder)
10031004
RegisterBodyDecoder("application/yaml", yamlBodyDecoder)
10041005
RegisterBodyDecoder("application/problem+json", jsonBodyDecoder)

0 commit comments

Comments
 (0)