Skip to content

Commit 47b3165

Browse files
author
Alexander Furer
committed
release 4.2.4
1 parent defbc80 commit 47b3165

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

README.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ repositories {
3131
3232
}
3333
dependencies {
34-
compile 'io.github.lognet:grpc-spring-boot-starter:4.2.2'
34+
compile 'io.github.lognet:grpc-spring-boot-starter:4.2.4'
3535
}
3636
3737
@@ -317,7 +317,7 @@ Thanks to https://beanvalidation.org/2.0/spec/[Bean Validation] configuration su
317317
provide the constraints for generated classes instead of instrumenting the generated messages with custom `protoc` compiler.
318318

319319
. Add `org.springframework.boot:spring-boot-starter-validation` dependency to your project.
320-
. Create `META-INF/validation.xml` and constraints declarations file(s). +
320+
. Create `META-INF/validation.xml` and constraints declarations file(s). (IntelliJ IDEA has great auto-complete support for authorizing bean validation constraints xml files )+
321321
See also https://docs.jboss.org/hibernate/stable/validator/reference/en-US/html_single/?v=6.1#chapter-xml-configuration[samples] from `Hibernate` validator documentation
322322

323323
You can find link:grpc-spring-boot-starter-demo/src/main/resources/META-INF/validation/constraints-message-to-validate.xml[demo configuration] and corresponding tests

ReleaseNotes.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
== Version 4.2.4
2+
* Spring Validation (Java Beans) support
3+
14
== Version 4.2.3
25
* gRPC version upgraded to 1.33.1
36
* Support `authenticate only` when role list is empty , `@Secured({})` (credits to https://github.com/CleverUnderDog[@CleverUnderDog])

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ grpcVersion=1.33.1
22
springBootVersion=2.3.4.RELEASE
33
springCloudVersion=Hoxton.SR6
44

5-
version=4.2.4-SNAPSHOT
5+
version=4.2.4
66
group=io.github.lognet
77
description=Spring Boot starter for Google RPC.
88
gitHubUrl=https\://github.com/LogNet/grpc-spring-boot-starter

grpc-spring-boot-starter-demo/src/main/resources/META-INF/validation/constraints-person.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<element name="value">120</element>
3838
</constraint>
3939
</getter>
40-
<getter name="address">
40+
<getter name="address"> <!-- invokes hasAddress() method, not getAddress(), hence AssertTrue -->
4141
<constraint annotation="javax.validation.constraints.AssertTrue"/>
4242
</getter>
4343

0 commit comments

Comments
 (0)