jakartaee/rest

MediaType - Missing JSON Merge Patch type

Opened this issue · 3 comments

In file:

https://github.com/jakartaee/rest/blob/master/jaxrs-api/src/main/java/jakarta/ws/rs/core/MediaType.java

there is a public static final String APPLICATION_JSON_PATCH_JSON = "application/json-patch+json"
for JSON Patch
https://www.rfc-editor.org/rfc/rfc6902

but not for JSON Merge Patch
https://www.rfc-editor.org/rfc/rfc7386

Content type is "merge-patch+json".

chkal commented

I'm basically +1 for this. Although we should most likely use RFC7396 instead, which obsoletes RFC7386.

Yes, I meant RFC7396.

@pestapever Would you like to provide a PR?