Skip to content

A composite registry cannot be used a local registry #1048

@fuadsaud

Description

@fuadsaud

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions