is it possible to write specs for maps like you can in schema?
(def User
{::id s/Int
::name s/Str})
vs
(s/def ::id int?)
(s/def ::name string?)
(s/def ::user
(s/keys :req [::id ::name]))
that is how you do it in spec
there’s no way to do it inline like schema?
no, there is a philosophical difference in approach here
spec is trying to build a registry of spec'ed attributes. the attributes are seen as primary, the map only as container.
spec 2 is developing this further and will have some support for unqualified attributes with inline specs in a schema