Liking cljdoc? Tell your friends :D

martian.schema


*visited-refs*clj/s

source

+extra-string-coercions+clj/s

source

->map-matcherclj/s

(->map-matcher coercion-matcher)

Builds a version of stc/map-filter-matcher that is optional and takes into account a custom coercion-matcher that may/not happen afterwards.

Builds a version of `stc/map-filter-matcher` that is optional and takes
into account a custom `coercion-matcher` that may/not happen afterwards.
sourceraw docstring

build-coercion-matcherclj/s

(build-coercion-matcher {:keys [coercion-matcher use-defaults?]
                         :or {coercion-matcher default-coercion-matcher}})
source

coerce-dataclj/s

(coerce-data schema data)
(coerce-data schema data {:keys [parameter-aliases] :as opts})

Extracts the data referred to by the schema's keys and coerces it

Extracts the data referred to by the schema's keys and coerces it
sourceraw docstring

default-coercion-matcherclj/s

source

format->separatorclj/s

source

format-coll-coercion-matcherclj/s

(format-coll-coercion-matcher schema)
source

keyword->stringclj/s

(keyword->string x)
source

leaf-schemaclj/s

(leaf-schema {:keys [type enum format]})
source

lookup-refclj/s

(lookup-ref ref ref-lookup)
source

make-schemaclj/s

(make-schema ref-lookup
             {:keys [required required? type schema $ref items] :as param})

Takes a swagger parameter and returns a schema

Takes a swagger parameter and returns a schema
sourceraw docstring

resolve-ref-fnclj/s

(resolve-ref-fn ref-lookup)

returns a function that receives an object and resolves it using resolve-ref-object

returns a function that receives an object and resolves it using resolve-ref-object
sourceraw docstring

resolve-ref-objectclj/s

(resolve-ref-object ref-object ref-lookup)
(resolve-ref-object ref-object ref-lookup visited-list)

resolve-ref-object receives a map with '$ref` key and returns the referenced object. Throws an exception if the reference is cyclic, it doesn't exist or is not supported

resolve-ref-object receives a map with '$ref` key and returns the referenced object.
Throws an exception if the reference is cyclic, it doesn't exist or is not supported
sourceraw docstring

schemas-for-parametersclj/s

(schemas-for-parameters ref-lookup parameters)

Given a collection of swagger parameters returns a schema map

Given a collection of swagger parameters returns a schema map
sourceraw docstring

seq->stringclj/s

(seq->string coll-fmt)
source

string-enum-matcherclj/s

(string-enum-matcher schema)
source

URIclj/s

source

wrap-defaultclj/s

(wrap-default {:keys [default]} schema)
source

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

× close