diff --git a/Sample/Sample.csproj b/Sample/Sample.csproj index 1c35cab..acca035 100644 --- a/Sample/Sample.csproj +++ b/Sample/Sample.csproj @@ -1,13 +1,13 @@ - net6.0 + net6.0 enable enable - + diff --git a/Shared/Shared.csproj b/Shared/Shared.csproj index 8425cf5..a80e41d 100644 --- a/Shared/Shared.csproj +++ b/Shared/Shared.csproj @@ -1,7 +1,7 @@ - + - netcoreapp3.1 + net6.0 diff --git a/src/Graph.ArgumentValidator.csproj b/src/Graph.ArgumentValidator.csproj index b5eb0c8..5c46c3d 100644 --- a/src/Graph.ArgumentValidator.csproj +++ b/src/Graph.ArgumentValidator.csproj @@ -3,16 +3,16 @@ $(LibraryTargetFrameworks) - netcoreapp3.1 + net6.0 HotChocolate.Validator, HotChocolate, GraphQL icon.png true true - 2.1.1 + $(Version) - + diff --git a/src/ValidationMiddleware.cs b/src/ValidationMiddleware.cs index afc5d7b..3175505 100644 --- a/src/ValidationMiddleware.cs +++ b/src/ValidationMiddleware.cs @@ -42,7 +42,10 @@ public async Task InvokeAsync(IMiddlewareContext context) context.ReportError(ErrorBuilder.New() .SetMessage(validationResult.ErrorMessage) .SetExtension("field", char.ToLowerInvariant(field[0]) + field.Substring(1)) - .SetPath(PathFactory.Instance.New(argument.Name)) + .SetPath(new List + { + argument.Name + }) .Build()); } diff --git a/test/Graph.ArgumentValidator.Tests.csproj b/test/Graph.ArgumentValidator.Tests.csproj index c3c7d45..ed2504e 100644 --- a/test/Graph.ArgumentValidator.Tests.csproj +++ b/test/Graph.ArgumentValidator.Tests.csproj @@ -1,23 +1,23 @@ - + - net5.0 + net6.0 false - + - - - + + + runtime; build; native; contentfiles; analyzers; buildtransitive all - + runtime; build; native; contentfiles; analyzers; buildtransitive all