Skip to content

Commit d4cccfe

Browse files
committed
fix validation import
1 parent bf26c2a commit d4cccfe

6 files changed

Lines changed: 24 additions & 1 deletion

File tree

bin/configs/spring-http-interface-springboot-4.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ additionalProperties:
1313
documentationProvider: "springdoc"
1414
# annotation provider should be ignored
1515
annotationLibrary: "swagger2"
16-
# validation should be ignored
1716
useBeanValidation: "true"
1817
performBeanValidation: "true"
1918
useSpringBoot4: "true"

modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-http-interface/pom-sb4.mustache

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@
9898
<optional>true</optional>
9999
</dependency>
100100
{{/lombok}}
101+
{{#useBeanValidation}}
102+
<dependency>
103+
<groupId>org.springframework.boot</groupId>
104+
<artifactId>spring-boot-starter-validation</artifactId>
105+
</dependency>
106+
{{/useBeanValidation}}
101107
<dependency>
102108
<groupId>org.springframework.boot</groupId>
103109
<artifactId>spring-boot-starter-{{#reactive}}web{{/reactive}}{{^reactive}}rest{{/reactive}}client-test</artifactId>

modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-http-interface/pom.mustache

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@
9696
<optional>true</optional>
9797
</dependency>
9898
{{/lombok}}
99+
{{#useBeanValidation}}
100+
<dependency>
101+
<groupId>org.springframework.boot</groupId>
102+
<artifactId>spring-boot-starter-validation</artifactId>
103+
</dependency>
104+
{{/useBeanValidation}}
99105
<dependency>
100106
<groupId>org.springframework.boot</groupId>
101107
<artifactId>spring-boot-starter-test</artifactId>

samples/client/petstore/spring-http-interface-bean-validation/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@
6767
<artifactId>jackson-databind-nullable</artifactId>
6868
<version>0.2.9</version>
6969
</dependency>
70+
<dependency>
71+
<groupId>org.springframework.boot</groupId>
72+
<artifactId>spring-boot-starter-validation</artifactId>
73+
</dependency>
7074
<dependency>
7175
<groupId>org.springframework.boot</groupId>
7276
<artifactId>spring-boot-starter-test</artifactId>

samples/client/petstore/spring-http-interface-reactive-bean-validation/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@
6767
<artifactId>jackson-databind-nullable</artifactId>
6868
<version>0.2.9</version>
6969
</dependency>
70+
<dependency>
71+
<groupId>org.springframework.boot</groupId>
72+
<artifactId>spring-boot-starter-validation</artifactId>
73+
</dependency>
7074
<dependency>
7175
<groupId>org.springframework.boot</groupId>
7276
<artifactId>spring-boot-starter-test</artifactId>

samples/client/petstore/spring-http-interface-springboot-4/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@
5858
<groupId>jakarta.validation</groupId>
5959
<artifactId>jakarta.validation-api</artifactId>
6060
</dependency>
61+
<dependency>
62+
<groupId>org.springframework.boot</groupId>
63+
<artifactId>spring-boot-starter-validation</artifactId>
64+
</dependency>
6165
<dependency>
6266
<groupId>org.springframework.boot</groupId>
6367
<artifactId>spring-boot-starter-restclient-test</artifactId>

0 commit comments

Comments
 (0)