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 · 2 comments
Open

A composite registry cannot be used a local registry #1048

fuadsaud opened this issue Apr 23, 2024 · 2 comments
Labels
enhancement New feature or request

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

@ikitommi
Copy link
Member

ikitommi commented Jan 1, 2025

There is no good reason for this limitation IMO.

@ikitommi ikitommi added the enhancement New feature or request label Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants