This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-12
Channels
- # adventofcode (135)
- # announcements (1)
- # beginners (192)
- # boot (5)
- # calva (130)
- # cider (42)
- # cljdoc (4)
- # cljs-dev (6)
- # cljsrn (3)
- # clojure (222)
- # clojure-europe (2)
- # clojure-greece (5)
- # clojure-italy (24)
- # clojure-nl (23)
- # clojure-russia (1)
- # clojure-spec (6)
- # clojure-uk (67)
- # clojurescript (35)
- # cursive (39)
- # datomic (61)
- # emacs (17)
- # figwheel (3)
- # figwheel-main (2)
- # fulcro (12)
- # hyperfiddle (10)
- # juxt (3)
- # leiningen (10)
- # nrepl (35)
- # off-topic (34)
- # onyx (3)
- # pathom (6)
- # quil (5)
- # re-frame (29)
- # reitit (6)
- # ring (1)
- # ring-swagger (8)
- # shadow-cljs (37)
- # spacemacs (9)
- # sql (9)
- # tools-deps (24)
- # unrepl (1)
- # vim (1)
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
?
Because :coercion nil
will also not document the endpoint in swagger anymore, apparently
@mrchance you need custom coercion, guide here: https://github.com/metosin/compojure-api/wiki/Coercion#custom-spec-coercion
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 😉
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