Skip to content
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

add note for integer-str's behavior #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/content.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ This is the table with available builtin validators:
Additional notes:

* `number-str` coerces to `java.lang.Double` or `float` (cljs)
* `integer-str` coerces to `java.lang.Long` or `Number` (cljs). Note that `integer-str` just checks if the given string is numeric and coerces it to a integer. For example, "100.001" passes the validation and is coerced to 10.
* `boolean-str` coerces to `true` (`"t"`, `"true"`, `"1"`) or `false` (`"f"`, `"false"`, `"0"`).
* `string-str` coerces anything to string using `str` function.

Expand Down