Skip to content

Commit 4358c4a

Browse files
authored
feat: add support for RFC 7396 application/merge-patch+json (#1084)
1 parent d72d75b commit 4358c4a

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
@@ -1264,6 +1264,7 @@ func decodeBody(body io.Reader, header http.Header, schema *openapi3.SchemaRef,
12641264
func init() {
12651265
RegisterBodyDecoder("application/json", JSONBodyDecoder)
12661266
RegisterBodyDecoder("application/json-patch+json", JSONBodyDecoder)
1267+
RegisterBodyDecoder("application/merge-patch+json", JSONBodyDecoder)
12671268
RegisterBodyDecoder("application/ld+json", JSONBodyDecoder)
12681269
RegisterBodyDecoder("application/hal+json", JSONBodyDecoder)
12691270
RegisterBodyDecoder("application/vnd.api+json", JSONBodyDecoder)

0 commit comments

Comments
 (0)