-
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
mu/-select-keys doesn't work with local-registry #791
Comments
Minimal repro: (m/schema [:schema {:registry {:select-keys (mu/-select-keys)}} :int]) Root cause might be that |
even more minimal: ;; :and requires 1+ children
(m/schema [:schema {:registry {::and (m/-and-schema)}} :int]) Not instantiating |
The problem is that we can't not instantiate the registry. Otherwise we get errors like this:
The problem here is that the registry is kind of meant for actual schemas, but something like One hacky option would be to make |
One more partial solution would be to make |
Yes, I remember @ikitommi noting that IntoSchema's aren't serializable, which is a key requirement of schemas. (Therefore they shouldn't be in local registries). |
As this popped up, re-collecting my thouhgts on this:
Is there a good reason not to support |
This one works:
This one throws an error:
The text was updated successfully, but these errors were encountered: