Skip to content

Commit

Permalink
Add support for MultipleOpenApiSupport when a Bean of type List<Group…
Browse files Browse the repository at this point in the history
…edOpenApi> is present. Fixes #1919
  • Loading branch information
bnasslahsen committed Nov 14, 2022
1 parent fe6e982 commit f9bb6e4
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
package org.springdoc.core;


import java.util.Collection;

import org.springframework.boot.autoconfigure.condition.AnyNestedCondition;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
Expand Down Expand Up @@ -55,4 +57,9 @@ static class OnGroupedOpenApiBean {}
@ConditionalOnProperty(name = GROUP_CONFIG_FIRST_PROPERTY)
static class OnGroupConfigProperty {}

/**
* The type On list grouped open api bean.
*/
@ConditionalOnBean(value = GroupedOpenApi.class, parameterizedContainer = Collection.class)
static class OnListGroupedOpenApiBean {}
}

0 comments on commit f9bb6e4

Please sign in to comment.