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 18a8db4 commit 4313da9
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
package org.springdoc.core.conditions;


import java.util.Collection;

import org.springdoc.core.models.GroupedOpenApi;

import org.springframework.boot.autoconfigure.condition.AnyNestedCondition;
Expand Down Expand Up @@ -59,4 +61,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 4313da9

Please sign in to comment.