Hi guys, I’m new using compojure-api and really like it. I’m using it with clojure-spec. I’m trying to customize the examples to be displayed in swagger from the api definition but is this possible (as in https://swagger.io/docs/specification/adding-examples/) ? Thanks
@michel_apostolou you can use
(s/def ::events
(st/spec {:spec (s/coll-of ::utils.time/local-date)) :json-schema/default ["2019-02-27"]})
basically pass json-schema/default
to spec-tools spec builder
@mping thank you for your prompt reply!! I had completely missed the whole spec-tools project
this works very well!