Skip to content

Commit

Permalink
Include validation warnings if requested
Browse files Browse the repository at this point in the history
  • Loading branch information
tlil committed Mar 12, 2017
1 parent 19eaa68 commit a7da961
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/GraphQL.Conventions/CommonAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
2 changes: 1 addition & 1 deletion src/GraphQL.Conventions/Web/RequestHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public async Task<Response> ProcessRequest(Request request, IUserContext userCon
var validationWarnings = new List<ExecutionError>();
if (!_useValidation && _outputViolationsAsWarnings)
{
var validationResult = Validate(request);
var validationResult = Validate(request)?.ValidationResult;
if (validationResult?.Errors?.Any() ?? false)
{
validationWarnings.AddRange(validationResult.Errors);
Expand Down
2 changes: 1 addition & 1 deletion src/GraphQL.Conventions/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.1.9-*",
"version": "1.1.10-*",
"description": "GraphQL Conventions for .NET",
"authors": [
"Tommy Lillehagen"
Expand Down

0 comments on commit a7da961

Please sign in to comment.