We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 963db04 commit 5b992a8Copy full SHA for 5b992a8
springdoc-openapi-data-rest/src/main/java/org/springdoc/data/rest/utils/SpringDocDataRestUtils.java
@@ -405,8 +405,8 @@ private List<String> getIgnoredFields(ResourceMetadata
405
* @param content the content
406
*/
407
public void buildTextUriContent(Content content) {
408
- if (content.containsKey(RestMediaTypes.TEXT_URI_LIST_VALUE))
409
- content.put(RestMediaTypes.TEXT_URI_LIST_VALUE, new MediaType().schema(new StringSchema()));
+ content.computeIfPresent(RestMediaTypes.TEXT_URI_LIST_VALUE,
+ (key, value) -> new MediaType().schema(new StringSchema()));
410
}
411
412
0 commit comments