metosin/malli

Feature: Using Java classes as schemas

Open

#1 007 ouverte le 2 févr. 2024

Voir sur GitHub
 (5 commentaires) (1 réaction) (0 assignés)Clojure (237 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (1 724 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Occasionally, it is necessary to drop down to Java interop. When that happens, I don't want to lose the ease and simplicity of Malli's validation, and I don't want to have to write my own custom :fn schema each time merely to call (instance? SomeClass value).

It would be helpful to have support for recognizing Java classes, effectively wrapping instance? for general use. I looked at the malli.core code and I'm not entirely sure how to accomplish this or I'd offer to do it.

Thanks so much

Guide contributeur