Skip to content

Commit

Permalink
trim resource packages when reading from config
Browse files Browse the repository at this point in the history
  • Loading branch information
abhisheksingh8-pp authored and ravidesai47 committed Nov 4, 2024
1 parent 92c8d28 commit 1dfe88a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<groupId>in.vectorpro.dropwizard</groupId>
<artifactId>dropwizard-swagger</artifactId>

<version>2.0.28-2</version>
<version>2.0.28-3</version>
<name>Dropwizard Swagger v2.x and OpenAPI 3.x Integration</name>
<url>https://github.com/Vect0rPro/dropwizard-swagger</url>
<description>A simple way to document your REST APIs in Dropwizard using Swagger</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,6 @@ public SwaggerConfiguration build() {
.prettyPrint(prettyPrint)
.readAllResources(readAllResources)
.ignoredRoutes(Arrays.stream(exclusions).collect(Collectors.toSet()))
.resourcePackages(Arrays.stream(resourcePackage.split(",")).collect(Collectors.toSet()));
.resourcePackages(Arrays.stream(resourcePackage.split(",")).map(String::trim).collect(Collectors.toSet()));
}
}

0 comments on commit 1dfe88a

Please sign in to comment.