File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
springfox-spring-web/src/main/java/springfox/documentation/spring/web/scanners Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ private Set<String> findSameModels(
291291 for (ModelReference modelReference : rootModel .getSubTypes ()) {
292292 Optional <String > modelId = getModelId (modelReference );
293293
294- if (modelId .isPresent ()) {
294+ if (modelId .isPresent () && mergingContext . containsModel ( modelId . get ()) ) {
295295 String sModelId = modelId .get ();
296296 ModelContext modelContext = Optional .ofNullable (parametersMatching .get (sModelId ))
297297 .map (op -> op .orElseGet (() -> parameter ))
@@ -311,7 +311,7 @@ private Set<String> findSameModels(
311311 ModelReference modelReference = property .getModelRef ();
312312 Optional <String > modelId = getModelId (modelReference );
313313
314- if (modelId .isPresent ()) {
314+ if (modelId .isPresent () && mergingContext . containsModel ( modelId . get ()) ) {
315315 String sModelId = modelId .get ();
316316 ModelContext modelContext = Optional .ofNullable (parametersMatching .get (sModelId ))
317317 .map (op -> op .orElseGet (() -> parameter ))
You can’t perform that action at this time.
0 commit comments