8000 Error in logic with both CustomFormatter and JsonTypeInfo · surgicalcoder/ApiClientGenerator@1a59ac7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1a59ac7

Browse files
author
Monty
committed
Error in logic with both CustomFormatter and JsonTypeInfo
1 parent c73c9a1 commit 1a59ac7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>1.4.0</Version>
3+
<Version>1.4.1</Version>
44
</PropertyGroup>
55
</Project>

GoLive.Generator.ApiClientGenerator/ApiClientGenerator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ private void SetUpSingleApi(RouteGeneratorSettings config, ControllerRoute contr
275275
}
276276
else
277277
{
278-
callStatement = $"await _client.{methodString}AsJsonAsync({routeString}, {key}, {useCustomFormatter}, cancellationToken: _token, jsonTypeInfo: _typeInfo);";
278+
callStatement = $"await _client.{methodString}AsJsonAsync({routeString}, {key}, {useCustomFormatter}, cancellationToken: _token);";
279279
}
280280
}
281281
else if (methodString == "Post")
@@ -305,7 +305,7 @@ private void SetUpSingleApi(RouteGeneratorSettings config, ControllerRoute contr
305305
}
306306
else
307307
{
308-
source.AppendLine($"return await result.Content.ReadFromJsonAsync<{action.ReturnTypeName}>({useCustomFormatter}, cancellationToken: _token, jsonTypeInfo: _typeInfo);");
308+
source.AppendLine($"return await result.Content.ReadFromJsonAsync<{action.ReturnTypeName}>({useCustomFormatter}, cancellationToken: _token);");
309309
}
310310

311311
}

0 commit comments

Comments
 (0)
0