ring-swagger

ring-swagger & compojure-api
ikitommi 2018-12-12T15:00:06.093400Z

yeah, let's ship the 2.0.0. help welcome.

2018-12-12T17:06:54.095Z

Hi, we want compojure-api to document an endpoint, but the return is a stream of potentially large data that we don't want to do coercion/validation on, is there a way to do that without providing a custom :coercion?

2018-12-12T17:07:19.095400Z

Because :coercion nil will also not document the endpoint in swagger anymore, apparently

ikitommi 2018-12-12T19:44:00.096Z

@mrchance you need custom coercion, guide here: https://github.com/metosin/compojure-api/wiki/Coercion#custom-spec-coercion

2018-12-13T09:04:34.099700Z

Ok, that's how we did it, just making sure there's no easier way. Thanks!

2018-12-13T09:06:48.099900Z

Ah no, wait, that's not exactly the same, will look into it. We're still using schema though, so not sure if that applies. Maybe it's time to migrate 😉

2018-12-12T22:10:17.097400Z

I’m trying to migrate to [metosin/compojure-api "2.0.0-alpha28"] from 1.1.12

Caused by: java.lang.ClassNotFoundException: org.yaml.snakeyaml.parser.ParserException
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:348)
        at clojure.lang.RT.classForName(RT.java:2204)
        at clojure.lang.RT.classForNameNonLoading(RT.java:2217)
        at compojure.api.exception$loading__6434__auto____4716.invoke(exception.clj:1)
        at compojure.api.exception__init.load(Unknown Source)
        at compojure.api.exception__init.<clinit>(Unknown Source)
        ... 230 more
If I add [metosin/muuntaja-yaml "0.6.2"] That error goes away, but I can’t seem to get rid of
Caused by: java.lang.ClassNotFoundException: com.ibm.icu.text.CharsetDetector
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:348)
        at clojure.lang.RT.classForName(RT.java:2204)
        at clojure.lang.RT.classForNameNonLoading(RT.java:2217)
        at ring.middleware.format_params$loading__6434__auto____4832.invoke(format_params.clj:1)
        at ring.middleware.format_params__init.load(Unknown Source)
        at ring.middleware.format_params__init.<clinit>(Unknown Source)
        ... 230 more
Compilation failed: Subprocess failed

2018-12-12T22:11:03.098200Z

Shouldn’t I no longer need this dependency?