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) {
4343 this .packagesToScan = builder .packagesToScan ;
4444 this .openApiCustomisers = Objects .requireNonNull (builder .openApiCustomisers );
4545 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 );
4848 }
4949
5050 public static Builder builder () {
You can’t perform that action at this time.
0 commit comments