Skip to content

Commit 072d54b

Browse files
authored
Merge pull request #3497 from reta/bean.validation-2.0-backport
Relax Swagger Core 1.6.x OSGi constraints to allow usage of the Bean Validation API 1.1/2.0
2 parents 07f34c5 + c396cbf commit 072d54b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

modules/swagger-core/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
io.swagger.model,
4545
io.swagger.util
4646
</Export-Package>
47+
<Import-Package>javax.validation.constraints;version="[1.1,3)",*</Import-Package>
4748
</instructions>
4849
</configuration>
4950
</plugin>

modules/swagger-hibernate-validations/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
io.swagger.config,
4646
io.swagger.models
4747
</Export-Package>
48+
<Import-Package>javax.validation.constraints;version="[1.1,3)",*</Import-Package>
4849
</instructions>
4950
</configuration>
5051
</plugin>

0 commit comments

Comments
 (0)