Skip to content

Commit bef87f7

Browse files
committed
Meant to use toList for paths
1 parent 8125ce1 commit bef87f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/graphql/validation/interpolation/ResourceBundleMessageInterpolator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ private static class ValidationErrorType implements ErrorClassification {
183183
private final ExecutionPath fieldOrArgumentPath;
184184
private final GraphQLDirective directive;
185185

186-
public ValidationErrorType(ExecutionPath fieldOrArgumentPath, GraphQLDirective directive) {
186+
ValidationErrorType(ExecutionPath fieldOrArgumentPath, GraphQLDirective directive) {
187187
this.fieldOrArgumentPath = fieldOrArgumentPath;
188188
this.directive = directive;
189189
}
@@ -192,7 +192,7 @@ public ValidationErrorType(ExecutionPath fieldOrArgumentPath, GraphQLDirective d
192192
public Object toSpecification(GraphQLError error) {
193193
Map<String, Object> map = new LinkedHashMap<>();
194194
map.put("type", "ExtendedValidationError");
195-
map.put("validatedPath", fieldOrArgumentPath.toString());
195+
map.put("validatedPath", fieldOrArgumentPath.toList());
196196
if (directive != null) {
197197
map.put("constraint", "@" + directive.getName());
198198
}

0 commit comments

Comments
 (0)