Liking cljdoc? Tell your friends :D

com.yetanalytics.gen-openapi.generate.schema


aclj/s

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

clean-prefixclj/s

(clean-prefix kw)

dslclj/s

(dsl overall)

map-valsclj/s

(map-vals f m)

oclj/s

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

optional?clj/s

(optional? kw)

owrapclj/s

(owrap pairs)

referenceclj/s

(reference kw-or-str)

test-mclj/s


transform-kwclj/s

(transform-kw kw)

transform-specclj/s

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

× close