@@ -19,12 +19,12 @@ This library provides extended validation of fields and field arguments for [gra
19
19
<dependency >
20
20
<groupId >com.graphql-java</groupId >
21
21
<artifactId >graphql-java-extended-validation</artifactId >
22
- <version >18.1 </version >
22
+ <version >19.0 </version >
23
23
</dependency >
24
24
```
25
25
26
26
``` groovy
27
- compile 'com.graphql-java:graphql-java-extended-validation:18.1 '
27
+ compile 'com.graphql-java:graphql-java-extended-validation:19.0 '
28
28
```
29
29
30
30
> Note:
@@ -38,6 +38,8 @@ compile 'com.graphql-java:graphql-java-extended-validation:18.1'
38
38
> use 18.1 or above for graphql-java 18.x and above
39
39
>
40
40
> 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
41
43
42
44
It's currently available from Maven central.
43
45
@@ -134,14 +136,13 @@ Like javax.validation, this library ships with some default error message templa
134
136
# I18n Locale Support
135
137
136
138
The 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
138
140
that come from I18N bundles.
139
141
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.
143
144
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
145
146
the library will extract a `Locale` from that.
146
147
147
148
# Schema Directive Wiring
0 commit comments