This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-07-23
Channels
- # babashka (1)
- # beginners (26)
- # clj-kondo (15)
- # cljdoc (2)
- # clojure (14)
- # clojure-europe (13)
- # clojure-norway (6)
- # conjure (2)
- # etaoin (4)
- # events (2)
- # expound (2)
- # fulcro (1)
- # hyperfiddle (6)
- # london-clojurians (2)
- # malli (3)
- # meander (10)
- # minecraft (3)
- # nbb (34)
- # off-topic (10)
- # pathom (13)
- # reagent (7)
- # vim (3)
This works
(def ok-schema
{:thing/create [:map
[:status [:string {:default "a"}]]]})
I want to extract the status
part into a reusable schema, so I do
(def bad-schema
{:thing/status :string
:thing/create [:map
[:status [:thing/status {:default "a"}]]]})
This is not valid. Throws an exception:
No implementation of method: :-into-schema of protocol:
#'malli.core/IntoSchema found for class: clojure.lang.Keyword
Hopefully it’s clear what I’m trying to do. Is this a bug or am I going about this the wrong way?