From a7da961fde31d7e3c3a17e35a17755f529abacde Mon Sep 17 00:00:00 2001 From: Tommy Lillehagen Date: Sun, 12 Mar 2017 23:37:42 +0000 Subject: [PATCH] Include validation warnings if requested --- src/GraphQL.Conventions/CommonAssemblyInfo.cs | 6 +++--- src/GraphQL.Conventions/Web/RequestHandler.cs | 2 +- src/GraphQL.Conventions/project.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/GraphQL.Conventions/CommonAssemblyInfo.cs b/src/GraphQL.Conventions/CommonAssemblyInfo.cs index d8484050..463a1971 100644 --- a/src/GraphQL.Conventions/CommonAssemblyInfo.cs +++ b/src/GraphQL.Conventions/CommonAssemblyInfo.cs @@ -7,9 +7,9 @@ [assembly: AssemblyProduct("GraphQL.Conventions")] [assembly: AssemblyCopyright("Copyright 2016-2017 Tommy Lillehagen. All rights reserved.")] [assembly: AssemblyTrademark("")] -[assembly: AssemblyVersion("1.1.9.0")] -[assembly: AssemblyFileVersion("1.1.9.0")] -[assembly: AssemblyInformationalVersion("1.1.9.0")] +[assembly: AssemblyVersion("1.1.10.0")] +[assembly: AssemblyFileVersion("1.1.10.0")] +[assembly: AssemblyInformationalVersion("1.1.10.0")] [assembly: CLSCompliant(false)] [assembly: InternalsVisibleTo("GraphQL.Conventions.Tests")] diff --git a/src/GraphQL.Conventions/Web/RequestHandler.cs b/src/GraphQL.Conventions/Web/RequestHandler.cs index 976f2f82..f524fed6 100644 --- a/src/GraphQL.Conventions/Web/RequestHandler.cs +++ b/src/GraphQL.Conventions/Web/RequestHandler.cs @@ -152,7 +152,7 @@ public async Task ProcessRequest(Request request, IUserContext userCon var validationWarnings = new List(); if (!_useValidation && _outputViolationsAsWarnings) { - var validationResult = Validate(request); + var validationResult = Validate(request)?.ValidationResult; if (validationResult?.Errors?.Any() ?? false) { validationWarnings.AddRange(validationResult.Errors); diff --git a/src/GraphQL.Conventions/project.json b/src/GraphQL.Conventions/project.json index bd9b1d6f..d4f9c08b 100755 --- a/src/GraphQL.Conventions/project.json +++ b/src/GraphQL.Conventions/project.json @@ -1,5 +1,5 @@ { - "version": "1.1.9-*", + "version": "1.1.10-*", "description": "GraphQL Conventions for .NET", "authors": [ "Tommy Lillehagen"