Fork me on GitHub
#ring-swagger
<
2018-12-12
>
ikitommi15:12:06

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

mrchance17:12:54

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?

mrchance17:12:19

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

mrchance09:12:34

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

mrchance09:12:48

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 😉

Jon Walch22:12:17

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

Jon Walch22:12:03

Shouldn’t I no longer need this dependency?