Skip to content

Commit

Permalink
unused prop
Browse files Browse the repository at this point in the history
  • Loading branch information
millotp committed Jul 18, 2024
1 parent 3d905b9 commit 7665aef
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import java.util.Map.Entry;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
import org.apache.commons.lang3.StringUtils;
import org.openapitools.codegen.*;

@SuppressWarnings("unchecked")
Expand Down Expand Up @@ -128,7 +127,6 @@ private Map<String, Object> traverseParams(
String finalParamName = getFinalParamName(paramName);

testOutput.put("key", finalParamName);
testOutput.put("isKeyAllUpperCase", StringUtils.isAllUpperCase(finalParamName));
testOutput.put("useAnonymousKey", !finalParamName.matches("(.*)_[0-9]$") && depth != 0);
testOutput.put("parent", parent);
testOutput.put("isRoot", "".equals(parent));
Expand Down
2 changes: 1 addition & 1 deletion templates/dart/tests/request_param.mustache
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{^isAdditionalProperty}}
{{#isKeyAllUpperCase}}{{#lambda.lowercase}}{{&key}}{{/lambda.lowercase}}{{/isKeyAllUpperCase}}{{^isKeyAllUpperCase}}{{#lambda.camelcase}}{{&key}}{{/lambda.camelcase}}{{/isKeyAllUpperCase}} : {{> tests/param_value}},
{{#lambda.camelcase}}{{{key}}}{{/lambda.camelcase}} : {{> tests/param_value}},
{{/isAdditionalProperty}}
{{#isAdditionalProperty}}
additionalProperties : { '{{{key}}}' : '{{{value}}}' },
Expand Down
2 changes: 1 addition & 1 deletion templates/kotlin/tests/request_param.mustache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{{^isAdditionalProperty}}{{#isKeyAllUpperCase}}{{#lambda.lowercase}}{{&key}}{{/lambda.lowercase}}{{/isKeyAllUpperCase}}{{^isKeyAllUpperCase}}{{#lambda.camelcase}}{{&key}}{{/lambda.camelcase}}{{/isKeyAllUpperCase}} = {{> tests/param_value}}{{/isAdditionalProperty}}{{#isAdditionalProperty}}additionalProperties = mapOf("{{key}}" to {{> tests/param_json_element}}){{/isAdditionalProperty}}
{{^isAdditionalProperty}}{{#lambda.camelcase}}{{{key}}}{{/lambda.camelcase}} = {{> tests/param_value}}{{/isAdditionalProperty}}{{#isAdditionalProperty}}additionalProperties = mapOf("{{key}}" to {{> tests/param_json_element}}){{/isAdditionalProperty}}

0 comments on commit 7665aef

Please # to comment.