Skip to content

Commit

Permalink
#1 Resolved incorrect string enum conversion during mutation
Browse files Browse the repository at this point in the history
  • Loading branch information
klaasvandeweerdt committed Mar 21, 2023
1 parent 52111c5 commit eeb6254
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Scr/Sdk4me.GraphQL/Sdk4me.GraphQL.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
<RepositoryUrl>https://github.com/code4me/4me-sdk-graphql-dotnet</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>4me</PackageTags>
<AssemblyVersion>1.0.2</AssemblyVersion>
<FileVersion>1.0.2</FileVersion>
<AssemblyVersion>1.0.3</AssemblyVersion>
<FileVersion>1.0.3</FileVersion>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageIcon>LogoDark128x218.png</PackageIcon>
<PackageReadmeFile>README.md</PackageReadmeFile>
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
<Version>1.0.2</Version>
<Version>1.0.3</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
4 changes: 3 additions & 1 deletion Scr/Sdk4me.GraphQL/Sdk4meClient.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Diagnostics;
using Newtonsoft.Json.Converters;
using System.Diagnostics;
using System.Net.Http.Headers;
using System.Text;
using System.Text.RegularExpressions;
Expand Down Expand Up @@ -261,6 +262,7 @@ public async Task<TOutEntity> Mutation<TOutEntity, TInEntity>(Mutation<TOutEntit
{
ContractResolver = new MutationQueryContractResolver(input.Data.GetFields(), typeof(TInEntity))
};
settings.Converters.Add(new StringEnumConverter());
settings.Converters.Add(new ISO8601TimeJsonConverter());
settings.Converters.Add(new ISO8601TimestampJsonConverter());

Expand Down

0 comments on commit eeb6254

Please sign in to comment.