Arazzo lint body references #1761
Labels
governance
Issues relating to problems with or requests for API governance/linting/decorating
Type: Bug
Something isn't working
Describe the bug
Arazzo should be linted to correctly validate the ABNF usage of body (
$request.body
and$response.body
) to use thejson-pointer
:For example,
$response.body#/id
.To Reproduce
The first step has output of
anchor_id: $response.body.id
and that should flag a lint error. It should be$response.body#/id
.Expected behavior
An error message should state the
$response.body
can only be followed by the#
character and a json-pointer.Logs
No lint error is provided.
Arazzo description
Redocly Version(s)
latest
Node.js
Version(s)20.x
OS, environment
mac
Additional context
https://spec.openapis.org/arazzo/latest.html#runtime-expressions
body-reference = "body" ["#" json-pointer ]
json-pointer = *( "/" reference-token )
The text was updated successfully, but these errors were encountered: