File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
springdoc-openapi-common/src/main/java/org/springdoc/core Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ private GroupedOpenApi(Builder builder) {
43
43
this .packagesToScan = builder .packagesToScan ;
44
44
this .openApiCustomisers = Objects .requireNonNull (builder .openApiCustomisers );
45
45
SwaggerUiConfigProperties .addGroup (this .group );
46
- if (CollectionUtils .isEmpty (this .pathsToMatch ) && CollectionUtils .isEmpty (this .packagesToScan ))
47
- throw new IllegalStateException ("Packages to scan or paths to filter can not be both null for the group:" + this .group );
46
+ if (CollectionUtils .isEmpty (this .pathsToMatch ) && CollectionUtils .isEmpty (this .packagesToScan ) && CollectionUtils . isEmpty ( openApiCustomisers ) )
47
+ throw new IllegalStateException ("Packages to scan or paths to filter or openApiCustomisers can not be all null for the group:" + this .group );
48
48
}
49
49
50
50
public static Builder builder () {
You can’t perform that action at this time.
0 commit comments