We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Applies to feature/refactor.
Say you have the following in your metaJSON
{ "name" : "type", "base-type" : "number", "description" : "the type of product", "required" : 1, "minValue" : 0, "maxValue" : 1 }
and you want to perform some validation, for example in Java:
{{#minValue}} if (newValue < {{minValue}}) { throw new InvalidArgumentException("Number " + newValue + " is smaller than {{minValue}}."); } {{/minValue}}
the code block is never generated. In fact mustache, due to its JavaScript nature, seems to evals an integer "0" to a boolean "false".
A possible work-around for this could be havinge pre-defined mustache keys has[Min,Max][Length,Value,Key].
The text was updated successfully, but these errors were encountered:
@S2MBO still valid?
Sorry, something went wrong.
Yes. This is still a problem. When I get to it, I might implement a fix.
Fixing sinnerschrader-mobile#24 by passing minValue and maxValue as s…
90fe0c1
…trings to mustache. Integer zeros would be evaluated to false and not rendered by mustache.
Test case for sinnerschrader-mobile#24
9fa5686
No branches or pull requests
Applies to feature/refactor.
Say you have the following in your metaJSON
and you want to perform some validation, for example in Java:
the code block is never generated. In fact mustache, due to its JavaScript nature, seems to evals an integer "0" to a boolean "false".
A possible work-around for this could be havinge pre-defined mustache keys has[Min,Max][Length,Value,Key].
The text was updated successfully, but these errors were encountered: