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.
(dispatch node context registry)
(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.
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...
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close