Skip to content

Commit

Permalink
rework: Remove else-branch to check value (asyncapi#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
JapuDCret committed May 19, 2023
1 parent df823ae commit 04d2fa5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion filters/all.js
Expand Up @@ -7,7 +7,7 @@ function defineType(prop, propName) {
return 'Map<String, ' + _.upperFirst(_.camelCase(prop.additionalProperties().uid())) + '>';
} else if (prop.additionalProperties().format()) {
return 'Map<String, ' + toClass(toJavaType(prop.additionalProperties().format())) + '>';
} else {
} else if (prop.additionalProperties().type()) {
return 'Map<String, ' + toClass(toJavaType(prop.additionalProperties().type())) + '>';
}
} else if (prop.type() === 'object') {
Expand Down
Expand Up @@ -23,7 +23,7 @@ public class {{schemaName | camelCase | upperFirst}} {
private @Valid Map<String, {{prop.additionalProperties().uid() | camelCase | upperFirst}}> {{propName | camelCase}};
{%- elif prop.additionalProperties().format() %}
private @Valid Map<String, {{prop.additionalProperties().format() | toJavaType | toClass}}> {{propName | camelCase}};
{%- else %}
{%- elif prop.additionalProperties().type() %}
private @Valid Map<String, {{prop.additionalProperties().type() | toJavaType | toClass}}> {{propName | camelCase}};
{%- endif %}
{%- elif prop.type() === 'object' %}
Expand Down

0 comments on commit 04d2fa5

Please sign in to comment.