(openapi-validator spec)(openapi-validator spec {:keys [base-path inline?] :as opts})Build an OpenApiInteractionValidator from a spec
spec is a url or path to resource describing a Swagger or OpenApi
specification.
opts is an optional map of options:
:base-path overrides the base path in the spec.:inline? true indicate that spec is the specification body
as a string, instead of a url or pathIf you need to customize the validator you can create a builder using
com.atlassian.oai.validator.OpenApiInteractionValidator/createFor
Build an OpenApiInteractionValidator from a spec
`spec` is a url or path to resource describing a Swagger or OpenApi
specification.
`opts` is an optional map of options:
- `:base-path` overrides the base path in the spec.
- `:inline? true` indicate that `spec` is the specification body
as a string, instead of a url or path
If you need to customize the validator you can create a builder using
`com.atlassian.oai.validator.OpenApiInteractionValidator/createFor`(validate-interaction validator request response)Validate a request/response pair using the given validator.
If any issues are found, returns a report collection
Validate a `request`/`response` pair using the given `validator`. If any issues are found, returns a report collection
(validate-request validator request)Validate a request using the given validator.
If any issues are found, returns a report collection
Validate a `request` using the given `validator`. If any issues are found, returns a report collection
(validate-response validator method path response)Validate a response using the given validator.
method is a ring-spec method: :get :head :post etc...path is the request path excluding parametersIf any issues are found, returns a report collection
Validate a `response` using the given `validator`. - `method` is a ring-spec method: `:get` `:head` `:post` etc... - `path` is the request path excluding parameters If any issues are found, returns a report collection
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 |