Repository navigation
@redocly/respect-core@2.83.0
·
2 commits
to main
since this release
Minor Changes
- Added the
spec-step-parameters-in-requiredrule for Arazzo descriptions.
It reports a step or workflow parameter without theinfield, unless it only reaches steps that useworkflowId. - Added support for Arazzo 1.1.0 Selector Objects with a
jsonpathorjsonpointertype to therespectcommand.
A Selector Object in step or workflowoutputs, a parameter value, a request body payload, or a replacement value gives the data that the selector picks from itscontext.
Patch Changes
- Fixed an issue where the
criteriaof a success or failure action inrespectcould not read the workflow inputs.
A condition such as$inputs.flag == truewas always false, so the action never ran. - Fixed an issue where a
jsonpathcriterion always failed when its condition started with a member name, as in$.items[?(@.category == "dessert")].
Respect applies such a condition to thecontextvalue, the same way as a Selector Object. - Fixed an issue where a
jsonpathsuccess criterion did not match when its condition had a runtime expression inside quotes, as in$[?(@.status == "{$inputs.expectedStatus}")]. - Fixed an issue where
respectsent[object Object]instead of a form when a step did not setcontentType: multipart/form-datain itsrequestBody, and the content type came from the OpenAPI operation or from aContent-Typeheader parameter.
A$file(...)reference in the payload of such a step is loaded as a file when the request body of the operation ismultipart/form-data. - Fixed an issue where
respectsent[object Object]in amultipart/form-datarequest body when a runtime expression gave an object.
The object is sent asparent[child]fields and a list as repeated fields, the same way as values written in the description.
A payload that a runtime expression sets as a whole is sent as a form. - Fixed an issue where
respectreportedInvalid JSON Pointerfor a valid replacementtargetwhen the replacementvaluecould not be evaluated.
The step fails with the error of the value. - Fixed an issue where Respect failed a step that calls a workflow with
workflowIdwhen the step'soutputsused$inputs,$steps, or$workflows.
The expressions also work in theselectorof a Selector Object, for example{$inputs.name}. - Improved the error that Respect reports when an output of a step that calls a workflow with
workflowIdfails to resolve: the message now names the output. - Fixed an issue where Respect reported an extra
unexpected errorfor a step that calls a workflow withworkflowIdwhen the called workflow failed and left a value that theoutputsof the step read unset. - Fixed an issue where Respect did not explain why an output of a step that calls a workflow with
workflowIdhad no value when it read the request or the response, as in$response.bodyor$statusCode.
The step now fails with a message that says it sends no request, the same as for its success criteria. - Updated @redocly/openapi-core to v2.83.0.