metosin/malli

Metadata-defined function schemas do not get reinstrumented by malli.dev

Open

#861 aberto em 5 de mar. de 2023

Ver no GitHub
 (2 comments) (1 reaction) (0 assignees)Clojure (237 forks)batch import
bughelp wanted

Métricas do repositório

Stars
 (1.724 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

Hello :wave:

I have noticed that functions schemas defined with metadata do not get reinstrumented by malli.dev on namespace reload. Any change to the file and namespace reload causes instrumentation to stop working.

This issue does not happen when a function is instrumented with malli.core/=>.

See the video showing this happening on the newest [metosin/malli "0.10.2"]:

https://user-images.githubusercontent.com/4920654/222991613-2e22a9ef-faf9-4e94-91d6-0c7aed07a572.mov

I'm not sure if it's just a bug or a known limitation but it takes away the dev utility of metadata schemas.

Let me know if I could help you with fixing it and big thank you for the library and those dev instrumentation features!

Guia do colaborador