Bumped package version to 1.2.0. Added missing route method conversions to code generator.

This commit is contained in:
MattMo 2023-02-05 13:02:18 -08:00
parent 887cd687e0
commit 5c2b2ea4ef
2 changed files with 19 additions and 1 deletions

View File

@ -530,6 +530,24 @@ namespace MontoyaTech.Rest.Net
case "get":
writer.Write("HttpMethod.Get");
break;
case "delete":
writer.Write("HttpMethod.Delete");
break;
case "put":
writer.Write("HttpMethod.Put");
break;
case "options":
writer.Write("HttpMethod.Options");
break;
case "patch":
writer.Write("HttpMethod.Patch");
break;
case "head":
writer.Write("HttpMethod.Head");
break;
case "trace":
writer.Write("HttpMethod.Trace");
break;
default:
throw new NotSupportedException("Unsupport route method:" + route.Method);
}

View File

@ -17,7 +17,7 @@
<AssemblyName>MontoyaTech.Rest.Net</AssemblyName>
<RootNamespace>MontoyaTech.Rest.Net</RootNamespace>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<Version>1.1.9</Version>
<Version>1.2.0</Version>
<PackageReleaseNotes></PackageReleaseNotes>
<PackageIcon>Logo_Symbol_Black_Outline.png</PackageIcon>
</PropertyGroup>