Skip to main content

Validate Adapter

POST 

/suts/:sut_id/connections/:connection_id/adapter/validate

Validate the connection's adapter mapping against a sample response payload.

Applies the adapter's stored mapping_config (each field's JSONPath) to request.sample_payload and reports every field that failed to map alongside any shape errors in the sample itself. The result's valid is true only when both lists are empty; this never mutates the stored adapter, so a caller can rehearse a sample before committing to it. sample_payload accepts either a JSON object or a bare array — the shape the CV protocols return. A payload the connection's protocol cannot assemble is reported as valid: false with the reason in errors, not as an error status.

Returns 404 when the connection has no adapter configured.

Request​

Responses​

Successful Response