Skip to content

@redocly/respect-core@2.83.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 10:01
· 2 commits to main since this release
4da55fa

Minor Changes

  • Added the spec-step-parameters-in-required rule for Arazzo descriptions.
    It reports a step or workflow parameter without the in field, unless it only reaches steps that use workflowId.
  • Added support for Arazzo 1.1.0 Selector Objects with a jsonpath or jsonpointer type to the respect command.
    A Selector Object in step or workflow outputs, a parameter value, a request body payload, or a replacement value gives the data that the selector picks from its context.

Patch Changes

  • Fixed an issue where the criteria of a success or failure action in respect could not read the workflow inputs.
    A condition such as $inputs.flag == true was always false, so the action never ran.
  • Fixed an issue where a jsonpath criterion always failed when its condition started with a member name, as in $.items[?(@.category == "dessert")].
    Respect applies such a condition to the context value, the same way as a Selector Object.
  • Fixed an issue where a jsonpath success criterion did not match when its condition had a runtime expression inside quotes, as in $[?(@.status == "{$inputs.expectedStatus}")].
  • Fixed an issue where respect sent [object Object] instead of a form when a step did not set contentType: multipart/form-data in its requestBody, and the content type came from the OpenAPI operation or from a Content-Type header parameter.
    A $file(...) reference in the payload of such a step is loaded as a file when the request body of the operation is multipart/form-data.
  • Fixed an issue where respect sent [object Object] in a multipart/form-data request body when a runtime expression gave an object.
    The object is sent as parent[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 respect reported Invalid JSON Pointer for a valid replacement target when the replacement value could 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 workflowId when the step's outputs used $inputs, $steps, or $workflows.
    The expressions also work in the selector of a Selector Object, for example {$inputs.name}.
  • Improved the error that Respect reports when an output of a step that calls a workflow with workflowId fails to resolve: the message now names the output.
  • Fixed an issue where Respect reported an extra unexpected error for a step that calls a workflow with workflowId when the called workflow failed and left a value that the outputs of the step read unset.
  • Fixed an issue where Respect did not explain why an output of a step that calls a workflow with workflowId had no value when it read the request or the response, as in $response.body or $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.