(a schema)
Takes a schema and returns a json-schema of an array of items of the input schema: (a {:some :schema})
yields
{:type :array :items {:some :schema}}
Takes a schema and returns a json-schema of an array of items of the input schema: (a {:some :schema}) yields {:type :array :items {:some :schema}}
(clean-prefix kw)
(dsl overall)
(map-vals f m)
(o pairs)
Yields a map compatible with json-schema that describes a json-schema "object".
(o {:key1 {:type :string} :key2 {:type :string}})
yields
{:type :object, :properties {:key2 {:type :string}, :key1 {:type :string}}, :required ["key2" "key1"]}
Add a ?# at the beginning of a property name to mark it as optional:
(o {:?#key1 {:type :string}})
yields
{:type :object, :properties {:key1 {:type :string}}, :required []}
Yields a map compatible with json-schema that describes a json-schema "object". (o {:key1 {:type :string} :key2 {:type :string}}) yields {:type :object, :properties {:key2 {:type :string}, :key1 {:type :string}}, :required ["key2" "key1"]} Add a ?# at the beginning of a property name to mark it as optional: (o {:?#key1 {:type :string}}) yields {:type :object, :properties {:key1 {:type :string}}, :required []}
(optional? kw)
(owrap pairs)
(reference kw-or-str)
(transform-kw kw)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close