Skip to content

Commit

Permalink
Add unless check in structure member for string size. Not that no out…
Browse files Browse the repository at this point in the history
…put diff
  • Loading branch information
andy31415 committed Jan 20, 2022
1 parent 2bc7509 commit 64d9419
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/app/zap-templates/partials/idl/structure_member.zapt
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{{~#if isOptional~}} optional {{/if~}}
{{~#if isNullable~}} nullable {{/if~}}

{{type}} {{~#if (isString type)~}}
{{~#if maxLength~}}
<{{maxLength}}>
{{~/if~}}
{{~/if}} {{asLowerCamelCase label~}}
{{type}}
{{~#unless isArray~}}
{{~#if (isString type)~}}
{{~#if maxLength~}}
<{{maxLength}}>
{{~/if~}}
{{~/if}}
{{~/unless}} {{asLowerCamelCase label~}}

{{~#if isArray~}}
[]
Expand Down

0 comments on commit 64d9419

Please sign in to comment.