-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
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
Mustache mistakes "0" value for false #24
Comments
@S2MBO still valid? |
5 tasks
Yes. This is still a problem. When I get to it, I might implement a fix. |
S2MBO
added a commit
to S2MBO/metaJSON
that referenced
this issue
Mar 19, 2015
…trings to mustache. Integer zeros would be evaluated to false and not rendered by mustache.
S2MBO
added a commit
to S2MBO/metaJSON
that referenced
this issue
Mar 19, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: