Skip to content

Commit d19ea2f

Browse files
author
Raul Hidalgo Caballero
authored
Additional error entries (#31)
1 parent f513236 commit d19ea2f

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

src/GraphQL.Client/GraphQL.Client.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
<TargetFrameworks>netstandard1.1;netstandard1.3;netstandard2.0</TargetFrameworks>
1212
</PropertyGroup>
1313

14-
<ItemGroup>
15-
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
16-
</ItemGroup>
17-
1814
<ItemGroup>
1915
<ProjectReference Include="..\GraphQL.Common\GraphQL.Common.csproj" />
2016
</ItemGroup>

src/GraphQL.Common/GraphQL.Common.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
<ItemGroup>
1515
<PackageReference Include="Microsoft.CSharp" Version="4.4.1" />
16+
<PackageReference Include="Newtonsoft.Json" Version="11.0.1" />
1617
</ItemGroup>
1718

1819
</Project>

src/GraphQL.Common/Response/GraphQLError.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
using System.Collections.Generic;
2+
using Newtonsoft.Json;
3+
using Newtonsoft.Json.Linq;
4+
15
namespace GraphQL.Common.Response {
26

37
/// <summary>
@@ -15,6 +19,12 @@ public class GraphQLError {
1519
/// </summary>
1620
public GraphQLLocation[] Locations { get; set; }
1721

22+
/// <summary>
23+
/// Additional error entries
24+
/// </summary>
25+
[JsonExtensionData]
26+
public IDictionary<string, JToken> AdditonalEntries { get; set; }
27+
1828
}
1929

2030
}

tests/GraphQL.Client.Tests/GraphQL.Client.Tests.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,8 @@
1212
<ProjectReference Include="..\GraphQL.Common.Tests\GraphQL.Common.Tests.csproj" />
1313
</ItemGroup>
1414

15-
</Project>
15+
<ItemGroup>
16+
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
17+
</ItemGroup>
18+
19+
</Project>

0 commit comments

Comments
 (0)