Validation of ring requests parameters and body against an OpenAPI operation
Validation of ring requests parameters and body against an OpenAPI operation
Matches param-type for "cookie"
Matches `param-type` for "cookie"
(ensure-params-supported! openapi-schema sub-schema)Throws if a parameter of operation sub-schema uses a serialization that
cannot be validated
Throws if a parameter of operation `sub-schema` uses a serialization that cannot be validated
Matches param-type for "header"
Matches `param-type` for "header"
(validate request schema sub-schema opts)Performs validation of RING request map
Performs validation of RING request map
(validate-body {:as request :keys [body headers]} schema sub-schema opts)Performs eventual validation of request :body
Performs eventual validation of request `:body`
(validate-cookie-params request schema sub-schema opts)Performs eventual validation of "parameters" of type "cookie"
Performs eventual validation of "parameters" of type "cookie"
(validate-header-params request schema sub-schema opts)Performs eventual validation of "parameters" of type "header"
Performs eventual validation of "parameters" of type "header"
(validate-path-params request schema sub-schema opts)Performs eventual validation of "parameters" of type "path"
Performs eventual validation of "parameters" of type "path"
(validate-query-params request schema sub-schema opts)Performs eventual validation of "parameters" of type "query"
Performs eventual validation of "parameters" of type "query"
(validator schema sub-schema opts)Returns a fn validating ring requests against operation sub-schema,
returning the validated request. Parameters are looked up once, when creating
the validator
Returns a fn validating ring requests against operation `sub-schema`, returning the validated request. Parameters are looked up once, when creating the validator
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 |