ring-swagger

ring-swagger & compojure-api
Mikko Nylén 2018-11-21T06:57:06.118500Z

Hey! I'm trying to upgrade compojure-api from 1.1.11 to 2.0.0-alpha28, but I'm facing some problems. First and foremost, I'm getting this error when requesting the swagger ui:

user=> 08:53:18.052 ERROR [compojure.api.exception] (XNIO-1 task-22) Unable to resolve spec: :clojure.spec.alpha/unknown
java.lang.Exception: Unable to resolve spec: :clojure.spec.alpha/unknown
	at clojure.spec.alpha$reg_resolve_BANG_.invokeStatic(alpha.clj:69) ~[spec.alpha-0.1.143.jar:na]
	at clojure.spec.alpha$reg_resolve_BANG_.invoke(alpha.clj:64) ~[spec.alpha-0.1.143.jar:na]
	at clojure.spec.alpha$fn__1750.invokeStatic(alpha.clj:126) ~[spec.alpha-0.1.143.jar:na]
	at clojure.spec.alpha$fn__1750.invoke(alpha.clj:124) ~[spec.alpha-0.1.143.jar:na]
	at clojure.spec.alpha$fn__1733$G__1728__1742.invoke(alpha.clj:121) ~[spec.alpha-0.1.143.jar:na]
	at clojure.spec.alpha$specize.invokeStatic(alpha.clj:138) ~[spec.alpha-0.1.143.jar:na]
	at clojure.spec.alpha$specize.invoke(alpha.clj:137) ~[spec.alpha-0.1.143.jar:na]
	at clojure.spec.alpha$form.invokeStatic(alpha.clj:163) ~[spec.alpha-0.1.143.jar:na]
	at clojure.spec.alpha$form.invoke(alpha.clj:159) ~[spec.alpha-0.1.143.jar:na]
	at spec_tools.visitor$spec_dispatch.invokeStatic(visitor.cljc:13) ~[na:na]
	at spec_tools.visitor$spec_dispatch.invoke(visitor.cljc:9) ~[na:na]
       --snip--
Any idea what I should check for?

Mikko Nylén 2018-11-21T06:58:22.119100Z

Also getting 08:57:24.065 ERROR [compojure.api.exception] (XNIO-1 task-25) java.lang.Class cannot be cast to clojure.lang.IFnClassCastException when trying to invoke any route through curl.

Mikko Nylén 2018-11-21T07:13:52.119900Z

Aa, I think the :query-params for our routes might not be valid clojure.specs...

ikitommi 2018-11-21T12:43:13.120500Z

@mikko273 got it resolved?