@@ -19,12 +19,12 @@ This library provides extended validation of fields and field arguments for [gra
1919<dependency >
2020 <groupId >com.graphql-java</groupId >
2121 <artifactId >graphql-java-extended-validation</artifactId >
22- <version >18.1 </version >
22+ <version >19.0 </version >
2323</dependency >
2424```
2525
2626``` groovy
27- compile 'com.graphql-java:graphql-java-extended-validation:18.1 '
27+ compile 'com.graphql-java:graphql-java-extended-validation:19.0 '
2828```
2929
3030> Note:
@@ -38,6 +38,8 @@ compile 'com.graphql-java:graphql-java-extended-validation:18.1'
3838> use 18.1 or above for graphql-java 18.x and above
3939>
4040> use 18.1-hibernate-validator-6.2.0.Final for graphql-java 18.x and SpringBoot 2.x support
41+ >
42+ > use 19.0 or above for graphql-java 19.x and above
4143
4244It's currently available from Maven central.
4345
@@ -134,14 +136,13 @@ Like javax.validation, this library ships with some default error message templa
134136# I18n Locale Support
135137
136138The validation library aims to offer Internationalisation (18N) of the error messages. When the validation rules
137- run they are passed in a `java.util.Locale`. A `ResourceBundleMessageInterpolator` can then be used to build up messages
139+ run they are passed in a `java.util.Locale`. A `ResourceBundleMessageInterpolator` can then be used to build up messages
138140that come from I18N bundles.
139141
140- A `Locale` should be created per graphql execution. However at the time of writing graphql-java does not
141- pass in a `Locale` per request `ExecutionInput` . A PR exists to fix this and it will be released in v14.0. This
142- library will then be updated to to take advantage of this.
142+ A `Locale` should be created per graphql execution, and can be passed to `ExecutionInput`. More i18n is being added to graphql-java
143+ and later this library will then be updated to to take advantage of i18n.
143144
144- In the mean time you can work around this by having the `context`, `source` or `root` implement `graphql.validation.locale.LocaleProvider` and
145+ In the meantime you can work around this by having the `context`, `source` or `root` implement `graphql.validation.locale.LocaleProvider` and
145146the library will extract a `Locale` from that.
146147
147148# Schema Directive Wiring
0 commit comments