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

Define a :type for all schemas #39

Closed
ikitommi opened this issue Aug 15, 2019 · 1 comment
Closed

Define a :type for all schemas #39

ikitommi opened this issue Aug 15, 2019 · 1 comment
Labels
for discussion Discussion is main focus of PR

Comments

@ikitommi
Copy link
Member

, like spec-tools does. Coercion would be mapped from types. The types could be also exposed, see #25. Hmm. Have both type-registry and predicate-registry available?

Adding new custom (non-deserializable) schemas could be:

(m/transform [:fn {:type :int} #(> 1 % 10)] "6" transform/string-transformer)
; => 6
@ikitommi
Copy link
Member Author

Replaced by #264

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for discussion Discussion is main focus of PR
Projects
None yet
Development

No branches or pull requests

1 participant