You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Solution:
Into macros.njk file, change {% elif definition.minLength and definition.maxLength %}
TO {% elif definition.minLength!==undefined and definition.maxLength!==undefined %}
In this way, 0 value will be recognized and used
The text was updated successfully, but these errors were encountered:
Issue Description
Yaml->Ts Generator miss minLength=0 from Yaml Def and generate wrong types (just string instead of WithinRangeString)
Current Behavior
Yaml Source:
Ts Output:
Expected/Correct Behavior
Ts Output:
Solution:
Into macros.njk file, change
{% elif definition.minLength and definition.maxLength %}
TO
{% elif definition.minLength!==undefined and definition.maxLength!==undefined %}
In this way,
0
value will be recognized and usedThe text was updated successfully, but these errors were encountered: