plumbapius v0.13.0 Plumbapius.Response

Defines methods for validating responses by request schema

Link to this section Summary

Link to this section Functions

Link to this function

validate_response(request_schema, response_status, response_content_type, response_body)

Specs

validate_response(
  request_schema :: Plumbapius.Request.Schema.t(),
  response_status :: non_neg_integer(),
  response_content_type :: String.t(),
  body :: map()
) :: {:ok, Plumbapius.Response.Schema.t()} | {:error, String.t()}