Hi, I’m trying to use reitit openapi together with martian as the client. Martian seems to expect status codes to be strings, which seems to be in agreement with the openapi spec. I’m using reitit with spec corecion and a :reponses map. If I change the status in the responses map to a string then reitit complains:
{:type clojure.lang.ExceptionInfo
:message Response status must be int or :default
:data {:status 200}
:at [reitit.coercion$response_coercer$iter__17744__17748$fn__17749 invoke coercion.cljc 176]}
What would be the best way to get around this?This wasn’t the actual issue. It wasn’t a deeper issue with the route returning the openapi.json spec.
yeah that would've been my guess too – reitit itself wants ints for response statuses but we do emit compliant openapi.json