Does describe
work with specs?
@mgrbyte The muuntaja should be always present, within the api
, injected in here: https://github.com/metosin/compojure-api/blob/master/src/compojure/api/middleware.clj#L279
I've run into a case where it's not set (in a custom exception handler for the :compojure.api.exception/request-validation
error). I'll try and find time to knock up an example repo with minimal steps to reproduce, but am vacation from tomorrow, so might not be for a week or so.
oh, that. the middleware seem to be in wrong order: 1) https://github.com/metosin/compojure-api/blob/master/src/compojure/api/middleware.clj#L277 2) https://github.com/metosin/compojure-api/blob/master/src/compojure/api/middleware.clj#L287
e.g. the exception handler happens before the request-injection. I presume itβs safe to reverse the order. PR welcome, after the vacations π
but there is the create-muuntaja
in that namespace, if you need the instance outside of the api
.
@dave.dixon c-api ships with 2.x version of the swagger-ui. You can update manually the ring-swagger-ui
to get the latest version.
for specs, there is spec-tools.core/spec
that can be used to add extra info to the specs. Spec-tools docs should have examples of that