Skip to content

Commit 18ac05b

Browse files
chore: add patch method in C# (#679)
1 parent 18c5e04 commit 18ac05b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/main/java/com/twilio/oai/api/CsharpApiResourceBuilder.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ public void updateHttpMethod(CodegenOperation co) {
135135
case "PUT":
136136
co.vendorExtensions.put(HTTP_METHOD, CsharpHttpMethod.PUT.getValue());
137137
break;
138+
case "PATCH":
139+
co.vendorExtensions.put(HTTP_METHOD, CsharpHttpMethod.PATCH.getValue());
140+
break;
138141
case "DELETE":
139142
co.vendorExtensions.put(HTTP_METHOD, CsharpHttpMethod.DELETE.getValue());
140143
break;

src/main/java/com/twilio/oai/common/EnumConstants.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ public enum CsharpHttpMethod {
128128
GET("HttpMethod.Get"),
129129
POST("HttpMethod.Post"),
130130
PUT("HttpMethod.Put"),
131+
PATCH("HttpMethod.Patch"),
131132
DELETE("HttpMethod.Delete");
132133

133134
private final String value;

0 commit comments

Comments
 (0)