Skip to content

Commit

Permalink
v2.3.1; Set Json serialization DefaultValueHandling to ignore (addres…
Browse files Browse the repository at this point in the history
…ses Voice API usage regression)
  • Loading branch information
smithrobs committed Nov 24, 2017
1 parent 410e68c commit 6c1de97
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 13 deletions.
10 changes: 2 additions & 8 deletions Nexmo.Api/Nexmo.Api.nuspec
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package >
<metadata>
<id>Nexmo.Csharp.Client</id>
<version>2.3.0</version>
<version>2.3.1</version>
<title>Nexmo API Client</title>
<authors>Nexmo</authors>
<owners>Nexmo</owners>
Expand All @@ -12,13 +12,7 @@
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Official C#/.NET wrapper for the Nexmo API</description>
<releaseNotes>
* [BREAKING] `Account.GetBalance` returns (instead of a `decimal`) a `Balance` object that includes your account balance and other properties.
* [BREAKING] `NumberInsight` calls, request classes, and response classes have changed slightly. The underlying calls to Nexmo's API have been updated as well. Thanks to @RabebOthmani for the PR!
* API and documentation refresh: Added missing JSON properties, updated summaries from the official docs.
* Support additional call endpoint types.
* Introduced `Nexmo.Api.EnsureSuccessStatusCode` configuration option. You may instruct the library to throw an exception if a request results in an unsuccessful HTTP status code.
* Address `ShortCode.RequestAlert` request bug.
* Expose the configuration `ILoggerFactory` for use with external logging implementations.
* Set Json serialization DefaultValueHandling to ignore
</releaseNotes>
<copyright>© Nexmo 2017</copyright>
<tags>SMS voice telephony phone nexmo</tags>
Expand Down
4 changes: 2 additions & 2 deletions Nexmo.Api/Properties/AssemblyInfo.cs
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.3.0.0")]
[assembly: AssemblyFileVersion("2.3.0.0")]
[assembly: AssemblyVersion("2.3.1.0")]
[assembly: AssemblyFileVersion("2.3.1.0")]
3 changes: 2 additions & 1 deletion Nexmo.Api/Request/VersionedApiRequest.cs
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ public static NexmoResponse DoRequest(string method, Uri uri, object payload, Cr
req.Headers.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer",
Jwt.CreateToken(appId, appKeyPath));

var data = Encoding.ASCII.GetBytes(JsonConvert.SerializeObject(payload));
var data = Encoding.ASCII.GetBytes(JsonConvert.SerializeObject(payload,
Formatting.None, new JsonSerializerSettings { DefaultValueHandling = DefaultValueHandling.Ignore }));
req.Content = new ByteArrayContent(data);
req.Content.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/json");

Expand Down
2 changes: 1 addition & 1 deletion Nexmo.Samples.Coverage/project.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"Microsoft.Extensions.Configuration.Json": "1.0.*",
"Microsoft.Extensions.Logging.Abstractions": "1.0.*",
"Serilog.Extensions.Logging.File": "1.1.*",
"Nexmo.Api": "2.3.0"
"Nexmo.Api": "2.3.*"
},
"frameworks": {
"netcoreapp1.0": {
Expand Down
2 changes: 1 addition & 1 deletion Nexmo.Samples.Web/project.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"version": "1.0.0-preview2-final",
"type": "build"
},
"Nexmo.Api": "2.3.0"
"Nexmo.Api": "2.3.*"
},
"tools": {
"Microsoft.AspNetCore.Razor.Tools": "1.0.0-preview2-final"
Expand Down

0 comments on commit 6c1de97

Please sign in to comment.