diff --git a/Rest.Net/Rest.Net.csproj b/Rest.Net/Rest.Net.csproj index 0b34c6a..31923dd 100644 --- a/Rest.Net/Rest.Net.csproj +++ b/Rest.Net/Rest.Net.csproj @@ -17,7 +17,7 @@ MontoyaTech.Rest.Net MontoyaTech.Rest.Net True - 1.6.1 + 1.6.2 Logo_Symbol_Black_Outline.png diff --git a/Rest.Net/RestJavascriptClientGenerator.cs b/Rest.Net/RestJavascriptClientGenerator.cs index 5bf9ac7..10b68ea 100644 --- a/Rest.Net/RestJavascriptClientGenerator.cs +++ b/Rest.Net/RestJavascriptClientGenerator.cs @@ -329,7 +329,7 @@ namespace MontoyaTech.Rest.Net writer.WriteLine("switch (name.toLowerCase().trim()) {").Indent(); for (int i = 0; i < names.Length; i++) - writer.WriteLine($"case '{names.GetValue(i).ToString().ToLower()}': return {values.GetValue(i)};"); + writer.WriteLine($"case '{names.GetValue(i).ToString().ToLower()}': return {Convert.ToInt32(values.GetValue(i))};"); writer.Outdent().WriteLine("}"); writer.WriteLine("return null;");