Fork me on GitHub
#malli
<
2019-11-21
>
ikitommi06:11:55

As schemas are responsible for parsing their own ast, we could have container schemas for doing translation between modelling systems. Doesn’t help with spec as it’s built around the global registry & macros, but would work with declarative models like JSON Schema:

[:json-schema 
  {:type "object"
   :properties {:name {:type "string"}
                :number {:type "number"}
   :required [:name]}]

👍 1