Fork me on GitHub
#malli
<
2022-07-23
>
hanDerPeder20:07:25

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?