Skip to content

Commit 7b77925

Browse files
committed
Add addMappings method
1 parent d518d50 commit 7b77925

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

springdoc-openapi-common/src/main/java/org/springdoc/core/OpenAPIBuilder.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,10 @@ public Map<String, Object> getMappingsMap() {
415415
return this.mappingsMap;
416416
}
417417

418+
public void addMappings(Map<String, Object> mappings) {
419+
this.mappingsMap.putAll(mappings);
420+
}
421+
418422
public Map<String, Object> getControllerAdviceMap() {
419423
Map<String, Object> controllerAdviceMap = context.getBeansWithAnnotation(ControllerAdvice.class);
420424
return Stream.of(controllerAdviceMap).flatMap(mapEl -> mapEl.entrySet().stream()).filter(

0 commit comments

Comments
 (0)