Skip to content

Commit

Permalink
Add json patch support (#702)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShouheiNishi committed Dec 14, 2022
1 parent c1219e3 commit b003421
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openapi3filter/req_resp_decoder.go
Expand Up @@ -999,6 +999,7 @@ func decodeBody(body io.Reader, header http.Header, schema *openapi3.SchemaRef,
func init() {
RegisterBodyDecoder("text/plain", plainBodyDecoder)
RegisterBodyDecoder("application/json", jsonBodyDecoder)
RegisterBodyDecoder("application/json-patch+json", jsonBodyDecoder)
RegisterBodyDecoder("application/x-yaml", yamlBodyDecoder)
RegisterBodyDecoder("application/yaml", yamlBodyDecoder)
RegisterBodyDecoder("application/problem+json", jsonBodyDecoder)
Expand Down

0 comments on commit b003421

Please sign in to comment.