This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-12
Channels
- # beginners (36)
- # boot (11)
- # cider (10)
- # cljs-dev (10)
- # cljsrn (3)
- # clojure (103)
- # clojure-greece (1)
- # clojure-italy (16)
- # clojure-nl (3)
- # clojure-spec (59)
- # clojure-uk (129)
- # clojurescript (125)
- # data-science (29)
- # datomic (30)
- # emacs (12)
- # events (5)
- # fulcro (61)
- # graphql (5)
- # keechma (3)
- # leiningen (9)
- # luminus (7)
- # onyx (26)
- # re-frame (3)
- # reagent (56)
- # reitit (25)
- # ring-swagger (16)
- # shadow-cljs (44)
- # spacemacs (4)
- # specter (2)
- # tools-deps (7)
- # vim (8)
Hey I am trying out the compojure-api but I am getting this error when doing a post request.`"title": "(not (instance? java.lang.String a-java.lang.Class))"` any ideas what this means?
I am following the compojure-api examples form here https://github.com/metosin/compojure-api/tree/master/examples/thingie/src/examples
@andreasp1994 that’s an Schema error for wrong type. What endpoint are you trying?
I am trying to do a Todo list REST API based on the pizza example
So when I am trying to add a new TodoItem using a POST request on /todos/ I get this error
Interestingly if I set the title to an integer lets say 1 I get "title": "(not (instance? java.lang.String 1))"
Hey is it possible to use swagger with spec rather than Schema???