Liking cljdoc? Tell your friends :D

s-exp.legba.coercion

Conversion of string values, such as parameters, headers or form fields, to the json types of their schemas before validation

Conversion of string values, such as parameters, headers or form fields, to
the json types of their schemas before validation
raw docstring

coerceclj

(coerce openapi-schema value-schema v)

Returns v converted with (coercer openapi-schema value-schema)

Returns `v` converted with `(coercer openapi-schema value-schema)`
raw docstring

coercerclj

(coercer openapi-schema value-schema)

Returns a fn converting the strings of a value to the json types of value-schema where possible. Values that cannot be converted are left as is, for validation to report them

Returns a fn converting the strings of a value to the json types of
`value-schema` where possible. Values that cannot be converted are left as
is, for validation to report them
raw docstring

resolve-schemaclj

(resolve-schema openapi-schema value-schema)

Returns value-schema, following a local top level $ref

Returns `value-schema`, following a local top level $ref
raw docstring

schema-typesclj

(schema-types openapi-schema value-schema)

Returns the set of json types allowed by value-schema, including the ones of its oneOf/anyOf/allOf schemas

Returns the set of json types allowed by `value-schema`, including the ones
of its oneOf/anyOf/allOf schemas
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close