From f0f106ed7c7976c56e70333480e0dee83a058282 Mon Sep 17 00:00:00 2001 From: snifter Date: Tue, 31 Dec 2024 12:59:21 +0100 Subject: [PATCH] HotChocolate v14 support added --- Sample/Sample.csproj | 2 +- src/Graph.ArgumentValidator.csproj | 2 +- ...idationTests.Ensure_Validation_Works_On_Arguments.snap | 6 ++++++ ...onTests.Ensure_Validation_Works_On_DuplicateEmail.snap | 8 +++++++- ...tionTests.Ensure_Validation_Works_On_InputObjects.snap | 6 ++++++ ...nsure_Validation_Works_On_StudentWithOutScoreCard.snap | 4 ++-- 6 files changed, 23 insertions(+), 5 deletions(-) diff --git a/Sample/Sample.csproj b/Sample/Sample.csproj index acca035..7b52416 100644 --- a/Sample/Sample.csproj +++ b/Sample/Sample.csproj @@ -7,7 +7,7 @@ - + diff --git a/src/Graph.ArgumentValidator.csproj b/src/Graph.ArgumentValidator.csproj index ac13228..763a3a8 100644 --- a/src/Graph.ArgumentValidator.csproj +++ b/src/Graph.ArgumentValidator.csproj @@ -12,7 +12,7 @@ - + diff --git a/test/__snapshots__/ValidationTests.Ensure_Validation_Works_On_Arguments.snap b/test/__snapshots__/ValidationTests.Ensure_Validation_Works_On_Arguments.snap index 93fc106..b3b9dda 100644 --- a/test/__snapshots__/ValidationTests.Ensure_Validation_Works_On_Arguments.snap +++ b/test/__snapshots__/ValidationTests.Ensure_Validation_Works_On_Arguments.snap @@ -2,6 +2,12 @@ "errors": [ { "message": "The String field is not a valid e-mail address.", + "locations": [ + { + "line": 1, + "column": 3 + } + ], "path": [ "email" ], diff --git a/test/__snapshots__/ValidationTests.Ensure_Validation_Works_On_DuplicateEmail.snap b/test/__snapshots__/ValidationTests.Ensure_Validation_Works_On_DuplicateEmail.snap index 545bc67..4cff200 100644 --- a/test/__snapshots__/ValidationTests.Ensure_Validation_Works_On_DuplicateEmail.snap +++ b/test/__snapshots__/ValidationTests.Ensure_Validation_Works_On_DuplicateEmail.snap @@ -2,6 +2,12 @@ "errors": [ { "message": "Email already exist", + "locations": [ + { + "line": 1, + "column": 3 + } + ], "path": [ "email" ], @@ -13,4 +19,4 @@ "data": { "checkDuplicateEmail": null } -} \ No newline at end of file +} diff --git a/test/__snapshots__/ValidationTests.Ensure_Validation_Works_On_InputObjects.snap b/test/__snapshots__/ValidationTests.Ensure_Validation_Works_On_InputObjects.snap index d6290b2..7f9fa15 100644 --- a/test/__snapshots__/ValidationTests.Ensure_Validation_Works_On_InputObjects.snap +++ b/test/__snapshots__/ValidationTests.Ensure_Validation_Works_On_InputObjects.snap @@ -2,6 +2,12 @@ "errors": [ { "message": "The Email field is not a valid e-mail address.", + "locations": [ + { + "line": 1, + "column": 3 + } + ], "path": [ "input" ], diff --git a/test/__snapshots__/ValidationTests.Ensure_Validation_Works_On_StudentWithOutScoreCard.snap b/test/__snapshots__/ValidationTests.Ensure_Validation_Works_On_StudentWithOutScoreCard.snap index 92e2085..774920c 100644 --- a/test/__snapshots__/ValidationTests.Ensure_Validation_Works_On_StudentWithOutScoreCard.snap +++ b/test/__snapshots__/ValidationTests.Ensure_Validation_Works_On_StudentWithOutScoreCard.snap @@ -1,7 +1,7 @@ { "errors": [ { - "message": "\u0060scoreCard\u0060 is a required field and cannot be null.", + "message": "`scoreCard` is a required field and cannot be null.", "locations": [ { "line": 1, @@ -13,7 +13,7 @@ ], "extensions": { "field": "scoreCard", - "specifiedBy": "http://spec.graphql.org/October2021/#sec-Input-Object-Required-Fields" + "specifiedBy": "https://spec.graphql.org/October2021/#sec-Input-Object-Required-Fields" } } ]