If you go with the :map-un idea, its coercion implementations could transform unqualified keys into qualified keys.
It might seem like a superficial change, why not just write [:a ::foo/a], but it makes rich hickey's philosophy around specifications much more idiomatic. While malli is a superior to clojure.spec in many ways, the philosophy behind it is still state of the art.
New feature to mirror syntax
(s/keys :req-un [::a])
At the moment,
:map
schema type \w qualified keywords won't validate any unqualified keywords, to compensate you have to write[:a ::foo/a]
, e.g.Would it make sense to add a new schema type
:map-un
such that( Or perhaps add a new property somewhere, e.g. )
If you go with the
:map-un
idea, its coercion implementations could transform unqualified keys into qualified keys.It might seem like a superficial change, why not just write
[:a ::foo/a]
, but it makes rich hickey's philosophy around specifications much more idiomatic. Whilemalli
is a superior toclojure.spec
in many ways, the philosophy behind it is still state of the art.Just an idea... feel free to close...