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. -
Fixed an issue where the
fileDependenciesfield of thebundlecommand's--metafilefile was always empty.
fileDependencieslists the bundled files, relative to the current directory. -
Changed the
bundlecommand so that the--outputoption takes precedence over theoutputoption of an API inredocly.yaml.
The precedence applies when you pass the API to the command, for exampleredocly bundle <api> --output <file>.Note: To keep writing the bundle to the
outputpath fromredocly.yaml, remove--outputfrom the command. -
Deprecated running the
build-docs,stats,score, andscorecard-classiccommands without theapiargument.
Without the argument, these commands process the first API inredocly.yamland display a deprecation banner.
To prepare for a later release that requires the argument, pass an API alias or path, for exampleredocly build-docs <api>. -
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
bundlecommand wrote the metadata file of--metafilewith the data of the last API when it bundled several APIs.
The command only writes a metadata file when it bundles a single API. -
Changed the
generate-clientcommand to ignore theclientOutputoption of an API when you pass the path to the API'srootfile instead of the API alias.Note: To keep writing the client to the
clientOutputpath, pass the API alias to the command. -
Fixed an issue where the
generate-clientcommand wrote the client of the first API and then failed when the clients of two APIs had the same output path. -
Fixed an issue where the
generate-clientcommand failed whenerrorMode: resultwas set together with thetanstack-queryorswrgenerator. -
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/client-generator to v0.10.6.
-
Updated @redocly/openapi-core to v2.83.0.
-
Updated @redocly/platform-integration to v2.83.0.
-
Updated @redocly/respect-core to v2.83.0.