Skip to content

Commit

Permalink
Fixed tpl, v2.26
Browse files Browse the repository at this point in the history
  • Loading branch information
RicoSuter committed May 18, 2016
1 parent 8dc94e3 commit b17951f
Show file tree
Hide file tree
Showing 21 changed files with 1,434 additions and 1,434 deletions.
2 changes: 1 addition & 1 deletion src/NSwag.Annotations/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
[assembly: AssemblyCompany("Rico Suter")]
[assembly: AssemblyProduct("NSwag.Annotations")]
[assembly: AssemblyCopyright("Copyright © Rico Suter, 2015")]
[assembly: AssemblyVersion("2.25.*")]
[assembly: AssemblyVersion("2.26.*")]
2 changes: 1 addition & 1 deletion src/NSwag.AssemblyLoader/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
[assembly: AssemblyCompany("Rico Suter")]
[assembly: AssemblyProduct("NSwag.AssemblyLoader")]
[assembly: AssemblyCopyright("Copyright © Rico Suter, 2015")]
[assembly: AssemblyVersion("2.25.*")]
[assembly: AssemblyVersion("2.26.*")]
2 changes: 1 addition & 1 deletion src/NSwag.CodeGeneration.Tests/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("2.25.*")]
// [assembly: AssemblyVersion("2.26.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public partial class <#=Model.Class#> <#if(Model.HasBaseType){#>: <#}#><#if(Mode
if (<#=parameter.VariableNameLower#> == null)
throw new ArgumentNullException("<#=parameter.VariableNameLower#>");

url_ = url_.Replace("{<#=parameter.Name#>}", <#=parameter.VariableNameLower#>.ToString());
url_ = url_.Replace("{<#=parameter.Name#>}", Uri.EscapeUriString(<#=parameter.VariableNameLower#>.ToString()));
<#}#>

<#foreach(var parameter in operation.QueryParameters){#>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private string ConvertExtendedClassSignatures(string code)
if (Settings.TypeScriptGeneratorSettings.ExtendedClasses != null)
{
foreach (var extendedClass in Settings.TypeScriptGeneratorSettings.ExtendedClasses)
code = code.Replace("export class " + extendedClass, "export class " + extendedClass + "Base");
code = code.Replace("export class " + extendedClass + " ", "export class " + extendedClass + "Base ");
}
return code;
}
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ export class <#=Model.Class#> <#if(Model.GenerateClientInterfaces){#>implements
if (<#=parameter.VariableNameLower#> === undefined || <#=parameter.VariableNameLower#> === null)
throw new Error("The parameter '<#=parameter.VariableNameLower#>' must be defined.");
<# if(parameter.IsDate){#>
url = url.replace("{<#=parameter.Name#>}", "" + <#=parameter.VariableNameLower#>.toJSON());
url = url.replace("{<#=parameter.Name#>}", encodeURIComponent("" + <#=parameter.VariableNameLower#>.toJSON()));
<# }else{#>
url = url.replace("{<#=parameter.Name#>}", "" + <#=parameter.VariableNameLower#>);
url = url.replace("{<#=parameter.Name#>}", encodeURIComponent("" + <#=parameter.VariableNameLower#>));
<# }
}#>

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ export class <#=Model.Class#> <#if(Model.GenerateClientInterfaces){#>implements
if (<#=parameter.VariableNameLower#> === undefined || <#=parameter.VariableNameLower#> === null)
throw new Error("The parameter '<#=parameter.VariableNameLower#>' must be defined.");
<# if(parameter.IsDate){#>
url = url.replace("{<#=parameter.Name#>}", "" + <#=parameter.VariableNameLower#>.toJSON());
url = url.replace("{<#=parameter.Name#>}", encodeURIComponent("" + <#=parameter.VariableNameLower#>.toJSON()));
<# }else{#>
url = url.replace("{<#=parameter.Name#>}", "" + <#=parameter.VariableNameLower#>);
url = url.replace("{<#=parameter.Name#>}", encodeURIComponent("" + <#=parameter.VariableNameLower#>));
<# }
}#>

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ export class <#=Model.Class#> <#if(Model.GenerateClientInterfaces){#>implements
if (<#=parameter.VariableNameLower#> === undefined || <#=parameter.VariableNameLower#> === null)
throw new Error("The parameter '<#=parameter.VariableNameLower#>' must be defined.");
<# if(parameter.IsDate){#>
url = url.replace("{<#=parameter.Name#>}", "" + <#=parameter.VariableNameLower#>.toJSON());
url = url.replace("{<#=parameter.Name#>}", encodeURIComponent("" + <#=parameter.VariableNameLower#>.toJSON()));
<# }else{#>
url = url.replace("{<#=parameter.Name#>}", "" + <#=parameter.VariableNameLower#>);
url = url.replace("{<#=parameter.Name#>}", encodeURIComponent("" + <#=parameter.VariableNameLower#>));
<# }
}#>

Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ export class <#=Model.Class#> <#if(Model.GenerateClientInterfaces){#>implements
if (<#=parameter.VariableNameLower#> === undefined || <#=parameter.VariableNameLower#> === null)
throw new Error("The parameter '<#=parameter.VariableNameLower#>' must be defined.");
<# if(parameter.IsDate){#>
url = url.replace("{<#=parameter.Name#>}", "" + <#=parameter.VariableNameLower#>.toJSON());
url = url.replace("{<#=parameter.Name#>}", encodeURIComponent("" + <#=parameter.VariableNameLower#>.toJSON()));
<# }else{#>
url = url.replace("{<#=parameter.Name#>}", "" + <#=parameter.VariableNameLower#>);
url = url.replace("{<#=parameter.Name#>}", encodeURIComponent("" + <#=parameter.VariableNameLower#>));
<# }}#>

<#foreach(var parameter in operation.QueryParameters){#>
Expand Down
2 changes: 1 addition & 1 deletion src/NSwag.CodeGeneration/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
[assembly: AssemblyCompany("Rico Suter")]
[assembly: AssemblyProduct("NSwag.CodeGeneration")]
[assembly: AssemblyCopyright("Copyright © Rico Suter, 2015")]
[assembly: AssemblyVersion("2.25.*")]
[assembly: AssemblyVersion("2.26.*")]
2 changes: 1 addition & 1 deletion src/NSwag.Core/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
[assembly: AssemblyCompany("Rico Suter")]
[assembly: AssemblyProduct("NSwag")]
[assembly: AssemblyCopyright("Copyright © Rico Suter, 2015")]
[assembly: AssemblyVersion("2.25.*")]
[assembly: AssemblyVersion("2.26.*")]
2 changes: 1 addition & 1 deletion src/NSwag.Demo.Client/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("2.25.*")]
// [assembly: AssemblyVersion("2.26.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
2 changes: 1 addition & 1 deletion src/NSwag.Tests/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("2.25.*")]
// [assembly: AssemblyVersion("2.26.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
2 changes: 1 addition & 1 deletion src/NSwag/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
[assembly: AssemblyCompany("Rico Suter")]
[assembly: AssemblyProduct("NSwag.Console")]
[assembly: AssemblyCopyright("Copyright © Rico Suter, 2015")]
[assembly: AssemblyVersion("2.25.*")]
[assembly: AssemblyVersion("2.26.*")]
Loading

0 comments on commit b17951f

Please sign in to comment.