(schema x)
(schema x defaults)
creates an extended schema for use by spirit
(-> (schema [:account [:name {} :email {:type :ref :ref {:ns :email}}]]) :flat simplify) => {:email {:accounts :&account<*>} :account {:email :&email :name :string}}
creates an extended schema for use by spirit (-> (schema [:account [:name {} :email {:type :ref :ref {:ns :email}}]]) :flat simplify) => {:email {:accounts :&account<*>} :account {:email :&email :name :string}}
(schema? obj)
checks if object is a schema
(schema? (schema {:user/email [{}]})) => true
checks if object is a schema (schema? (schema {:user/email [{}]})) => true
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close