This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
How would s/conform
work in an http context? Like how would I conform JSON payloads for specs defined with namespaced keys? Like if I have a spec for ::entity/id
instead of just :id
?
@scaturr You can use :req-un
instead of :req
to achieve what you want in this case
would that lead to a situation where you have specs exist just for json conforming? or can :req
and :req-un
co-exist?
Just released spectacles: lenses for #clojure -- checked at runtime using #spec https://github.com/stathissideris/spectacles
@scaturr have a look at this: https://github.com/metosin/spec-tools#dynamic-conforming