Liking cljdoc? Tell your friends :D
Clojure only.

hara.data.schema


schemaclj

(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}}
raw docstring

schema?clj

(schema? obj)

checks if object is a schema

(schema? (schema {:user/email [{}]})) => true

checks if object is a schema

(schema? (schema {:user/email [{}]}))
=> true
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close