This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-28
Channels
- # announcements (1)
- # beginners (205)
- # calva (30)
- # cider (5)
- # cljdoc (25)
- # cljs-dev (2)
- # clojure (119)
- # clojure-brasil (5)
- # clojure-conj (7)
- # clojure-europe (2)
- # clojure-hamburg (7)
- # clojure-italy (14)
- # clojure-nl (2)
- # clojure-russia (13)
- # clojure-spec (79)
- # clojure-uk (58)
- # clojurescript (54)
- # core-logic (2)
- # core-matrix (2)
- # cursive (40)
- # datascript (2)
- # datomic (18)
- # duct (2)
- # emacs (14)
- # figwheel (3)
- # figwheel-main (7)
- # fulcro (30)
- # funcool (1)
- # graphql (10)
- # jobs (1)
- # juxt (13)
- # lumo (1)
- # mount (1)
- # off-topic (56)
- # other-languages (2)
- # pedestal (17)
- # powderkeg (2)
- # protorepl (2)
- # re-frame (10)
- # reagent (1)
- # reitit (7)
- # ring-swagger (10)
- # schema (2)
- # shadow-cljs (70)
- # spacemacs (13)
- # specter (4)
- # sql (9)
- # tools-deps (26)
I think i should use oneOf, but i have no idea how to do it in a compojure-api project
@quieterkali try s/if
or s/cond-pre
, see https://github.com/plumatic/schema/blob/master/README.md#other-schema-types
hey guys, maybe i am wrong, but look like s/if
or s/cond-pre
are used for specifiying if you datatype will be a map or vector or whatever. What i am looking for is a way to say that something will be a vector of vector and it could have inside it schema A
or schema B
or nil or or even three of them at the same time. Something like (s/defschema schema-name {:name s/Str :space s/if [[A B nil]] [[A nil]] [[B nil]] [[nil]]})
@quieterkali there is #schema too for purely schema-related questions.