File tree Expand file tree Collapse file tree 4 files changed +11
-6
lines changed
examples/java/src/main/java/com/twilio/rest/previewiam/organizations Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -93,9 +93,6 @@ static public class ScimName {
93
93
@ JsonInclude (JsonInclude .Include .NON_EMPTY )
94
94
@ JsonProperty ("TestAnyType" )
95
95
@ Getter @ Setter private Object testAnyType ;
96
- public String getTestAnyType () {
97
- return Converter .objectToJson (testAnyType );
98
- }
99
96
100
97
public static ScimName fromJson (String jsonString , ObjectMapper mapper ) throws IOException {
101
98
return mapper .readValue (jsonString , ScimName .class );
Original file line number Diff line number Diff line change @@ -137,6 +137,7 @@ public ApiResourceBuilder updateOperations(Resolver<CodegenParameter> codegenPar
137
137
// currently supporting required and conditional parameters only for request body object
138
138
if (model != null ) {
139
139
model .vendorExtensions .put ("x-constructor-required" , true );
140
+ model .vendorExtensions .put ("x-model-parameters" , generateSignatureListBody (co ));
140
141
jsonRequestBodyResolver .resolve (item , codegenParameterIResolver );
141
142
}
142
143
});
@@ -214,10 +215,12 @@ public void updateHttpMethod(CodegenOperation co) {
214
215
case "PUT" :
215
216
co .vendorExtensions .put (HTTP_METHOD , JavaHttpMethod .PUT .getValue ());
216
217
break ;
218
+ case "PATCH" :
219
+ co .vendorExtensions .put (HTTP_METHOD , JavaHttpMethod .PATCH .getValue ());
220
+ break ;
217
221
case "DELETE" :
218
222
co .vendorExtensions .put (HTTP_METHOD , JavaHttpMethod .DELETE .getValue ());
219
223
break ;
220
-
221
224
}
222
225
}
223
226
Original file line number Diff line number Diff line change @@ -114,6 +114,7 @@ public enum JavaHttpMethod {
114
114
GET ("HttpMethod.GET" ),
115
115
POST ("HttpMethod.POST" ),
116
116
PUT ("HttpMethod.PUT" ),
117
+ PATCH ("HttpMethod.PATCH" ),
117
118
DELETE ("HttpMethod.DELETE" ),
118
119
HEAD ("HttpMethod.HEAD" ),
119
120
OPTIONS ("HttpMethod.OPTIONS" );
Original file line number Diff line number Diff line change 12
12
@Getter @Setter private { {{dataType} }} { {name} };
13
13
{ {/vendorExtensions.x-ref-enum} }
14
14
{ {^isMap} }
15
+ { {^isFreeFormObject} }
16
+ { {^isAnyType} }
15
17
{ {#vendorExtensions.x-serialize} }
16
18
public String get{ {#lambda.titlecase} }{ {name} }{ {/lambda.titlecase} }() {
17
19
return {{vendorExtensions.x-serialize} };
18
20
}{ {/vendorExtensions.x-serialize} }
21
+ { {/isAnyType} }
22
+ { {/isFreeFormObject} }
19
23
{ {/isMap} }
20
24
{ {/vars} }
21
25
{ {#vendorExtensions.x-constructor-required} }
22
- { {#modelParameters } }
26
+ { {#vendorExtensions.x-model-parameters } }
23
27
public { {classname} }({ {#.} }final { {{dataType} }} { {name} }{ {^-last} }, { {/-last} }{ {/.} } ) {
24
28
{{#.} }
25
29
this.{ {name} } = { {name} };
26
30
{ {/.} }
27
31
}
28
- { {/modelParameters } }
32
+ { {/vendorExtensions.x-model-parameters } }
29
33
{ {/vendorExtensions.x-constructor-required} }
30
34
31
35
{ {^vendorExtensions.x-response} }
You can’t perform that action at this time.
0 commit comments