Liking cljdoc? Tell your friends :D

kube-api.core.swagger.malli

Conversion from swagger's json-schema into malli schemas. Supports recursive definitions in the swagger schema by mapping to local malli registries.

Conversion from swagger's json-schema into malli schemas.
Supports recursive definitions in the swagger schema by mapping
to local malli registries.
raw docstring

*recurse*cljmultimethod


Base64Patternclj


DateTimePatternclj


dispatchclj

(dispatch node context registry)

swagger->malliclj

(swagger->malli swagger-spec root)

How you exchange a swagger specification for a malli schema. Must specify the 'root' chunk of swagger spec that you want to convert into a schema.

How you exchange a swagger specification for a malli schema. Must specify
the 'root' chunk of swagger spec that you want to convert into a schema.
raw docstring

swagger->malli*cljmultimethod

A multimethod for converting from a swagger specification into a malli schema. Implementations should return a tuple of the new malli registry and the malli schema for the requested swagger node.

Note that this is probably insufficient for general use as I've only written it to conform to the subset of json-schema / swagger that I see being returned by kubernetes api server implementations. Perhaps one day I will write a comprehensive version of this transform for json schema but I worry json schema is not followed rigorously enough in the real world to not require tailoring...

A multimethod for converting from a swagger specification into
a malli schema. Implementations should return a tuple of the new
malli registry and the malli schema for the requested swagger node.

Note that this is probably insufficient for general use as I've only
written it to conform to the subset of json-schema / swagger that I
see being returned by kubernetes api server implementations. Perhaps one
day I will write a comprehensive version of this transform for json schema
but I worry json schema is not followed rigorously enough in the real world
to not require tailoring...
raw docstring

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

× close