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

A composite registry cannot be used a local registry #1048

Open
fuadsaud opened this issue Apr 23, 2024 · 1 comment
Open

A composite registry cannot be used a local registry #1048

fuadsaud opened this issue Apr 23, 2024 · 1 comment

Comments

@fuadsaud
Copy link

fuadsaud commented Apr 23, 2024

From an ancient thread in the clojurians slack.

The following schema

[:map {:registry
       (malli.registry/composite-registry
         (malli/default-schemas)
         (malli.time/schemas))}
  ...]

Yields the following error message

Exception: java.lang.IllegalArgumentException: Don't know how to create ISeq from: malli.registry$composite_registry$reify__6973

Is there a reason why this isn't possible? Is there a recommended, alternative way to combine schemas like this other than setting the global registry? Perhaps in this particular case just merging the registries would suffice.

@fuadsaud
Copy link
Author

I guess merging is also not possible due to #780

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant