mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-08 09:26:11 +00:00
[Java] Add JSON-patch support to other Java API clients (#5808)
* add JSON-patch support to other Java API clients * minor fix to java jersey1 json check
This commit is contained in:
@@ -438,7 +438,7 @@ public class ApiClient {
|
||||
*/
|
||||
public boolean isJsonMime(String mime) {
|
||||
String jsonMime = "(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$";
|
||||
return mime != null && mime.matches(jsonMime);
|
||||
return mime != null && (mime.matches(jsonMime) || mime.equalsIgnoreCase("application/json-patch+json"));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user