troubleshooting

validate recorded traffic against an OpenAPI specification

Validates the request/response pairs already recorded in the event log against an OpenAPI specification, and reports per-exchange which operation it matched and any request or response violations. Supply the spec as a URL, file path or inline JSON/YAML under "spec" (or its alias "specUrlOrPayload"). A spec fetched by URL is subject to the SSRF policy (forwardProxyBlockPrivateNetworks). The traffic validated comes from the recorded event log, not from the request body.

put/mockserver/trafficValidate

Request

  • Base URL: http://localhost:1080
  • URL: http://localhost:1080/mockserver/trafficValidate
  • Auth: none declared

Request body

specstring

OpenAPI spec as a URL, file path or inline JSON/YAML

specUrlOrPayloadstring

accepted alias for "spec"

Response

validation completed (inspect allPassed and the per-request results)

totalRequestsinteger
passedinteger
failedinteger
allPassedboolean

Changes

No recorded changes to this operation across all 1 revision of this API.