(coerce-data schema data & [parameter-aliases use-defaults?])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
(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
(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
(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
(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
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |