-
Notifications
You must be signed in to change notification settings - Fork 215
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
Allow more than one pair of key-schema
value-schema
for :map-of
#881
Comments
@DeLaGuardo I've been exploring a similar thing in the #malli Clojurians Slack channel and was going to open an issue for it, but this might cover it already. Are you asking for |
As confirmed in Slack, it's @ikitommi could you explain a little more about why don't want this to be added to |
Probably because then it would not be possible to differentiate between [:map-with {}
[:key-schema-1 {:min 1 :max 10} :value-schema-1]
[:key-schema-2 {} :value-schema-2]] With that notation, it will be possible to say that keys like :key-schema-1 should be present N times. |
@DeLaGuardo Ohhh... right. You do put them in vecs when you need to add properties to the key and/or value schemas. I forgot about that. OK, so new schema type it is. Thoughts on a good name? |
I edited my comment after you asked for a name, sorry) |
Something similar exists in json-schema:
The text was updated successfully, but these errors were encountered: