File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -322,13 +322,13 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
322322
323323 static {
324324 // a set of all properties/fields (JSON key names)
325- openapiFields = new HashSet< String> ();
325+ openapiFields = new HashSet< String> ({{#allVars } }1 { {^-last } } + { {/-last } } { {/allVars } } { {^allVars } }0 { {/allVars } } );
326326 { {#allVars} }
327327 openapiFields.add("{ {baseName} }");
328328 { {/allVars} }
329329
330330 // a set of required properties/fields (JSON key names)
331- openapiRequiredFields = new HashSet<String >();
331+ openapiRequiredFields = new HashSet<String >({ {#requiredVars } }1 { {^-last } } + { {/-last } } { {/requiredVars } } { {^requiredVars } }0 { {/requiredVars } } );
332332 { {#requiredVars} }
333333 openapiRequiredFields.add("{ {baseName} }");
334334 { {/requiredVars} }
You can’t perform that action at this time.
0 commit comments