openapi_validator v0.0.4 OpenapiValidator.Plugs.Validate View Source

Validates input and output according to one or more OpenAPI specs.

Usage:

Add the plug at the bottom of one or more pipelines in router.ex:

pipeline "api" do
  # ...
  plug Api.Plugs.OASValidator, spec: Appcues.MobileApiSpecs.sdk()
end

Link to this section Summary

Link to this section Types

Link to this type

open_api_spec()

View Source
open_api_spec() :: map()
Link to this type

path_regex()

View Source
path_regex() :: {path(), Regex.t()}

Link to this section Functions

Link to this function

validate_response(conn, opts)

View Source