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

type properties of :int type ignored for int? type #1116

Open
yenda opened this issue Nov 1, 2024 · 0 comments
Open

type properties of :int type ignored for int? type #1116

yenda opened this issue Nov 1, 2024 · 0 comments

Comments

@yenda
Copy link

yenda commented Nov 1, 2024

It was unexpected behavior for me after reading the documentation. I had a preference for using the predicate version of types from clojure.core, but got bitten by the fact that the properties :min and :max were ignored:

> (m/validate [int? {:min 1 :max 12}] 14)
true
> (m/validate [:int {:min 1 :max 12}] 14)
false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant