Skip to content

Releases

@redocly/respect-core@2.84.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 14:01
b0b5d7e

Minor Changes

  • Added support for the OAuth2 clientCredentials and password flows to the x-security extension in Respect.

Patch Changes

  • Fixed an issue where the struct rule didn't report an Arazzo criterion that has a type and no context.
  • Fixed an issue where the struct rule reported an Arazzo request body that had no payload, even though the field was optional.
  • Fixed an issue where Respect failed steps that called a workflow from a previously run Arazzo description with Property time is not expected here and Property checks is not expected here errors.
  • Fixed an issue where the Respect schema check failed with the Ajv error: Maximum call stack size exceeded message when a response schema had a discriminator with many values.
  • Fixed an issue where the Respect schema check failed with the Ajv error: discriminator: requires oneOf or anyOf composite keyword message when a response schema had a discriminator without oneOf or anyOf.
    Respect checks such a response against the rest of the schema.
  • Fixed an issue where Respect ignored the rfc9535 version of a jsonpath criterion.
    A criterion with type: { type: jsonpath, version: rfc9535 } queries its context value the same way as a Selector Object, so $[?(@.category == "dessert")] filters the items of a list.
  • Fixed an issue where Respect failed a step with the Maximum call stack size exceeded error when a request or a response was described with a recursive schema.
    Respect checks a response against a recursive schema instead of skipping the schema check with a warning.
  • Fixed an issue where the Respect schema check failed with the must have required property message when a response did not have a required property that is marked writeOnly through allOf.
  • Updated @redocly/openapi-core to v2.84.0.

@redocly/recheck@2.84.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 14:01
b0b5d7e

Patch Changes

  • Updated @redocly/openapi-core to v2.84.0.

@redocly/platform-integration@2.84.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 14:01
b0b5d7e

Patch Changes

  • Updated @redocly/config to v0.79.0.

  • Updated the project clone command to address the project by its organization and project IDs in the Git remote URL, also when the project is given by slugs.

    Updated the project pr create and project pr status commands to call the Redocly platform API by IDs, and to show the Git command that switches a clone made with slugs to IDs.

  • Updated @redocly/openapi-core to v2.84.0.

@redocly/openapi-core@2.84.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 14:01
b0b5d7e

Minor Changes

  • Added support for the OAuth2 clientCredentials and password flows to the x-security extension in Respect.

Patch Changes

  • Fixed an issue where the struct rule didn't report an Arazzo criterion that has a type and no context.
  • Fixed an issue where the struct rule reported an Arazzo request body that had no payload, even though the field was optional.
  • Updated @redocly/config to v0.79.0.

@redocly/client-generator@0.10.7

Choose a tag to compare

@github-actions github-actions released this 26 Nov 14:01
b0b5d7e

Patch Changes

  • Fixed an issue where the generate-client command typed a schema as unknown when its $ref pointed at a schema that was itself only a $ref.
  • Fixed an issue where the generate-client command dropped the keywords next to a schema $ref in OpenAPI 3.1 and later descriptions.
    The generated types and schemas combine the properties, required, allOf, oneOf, and anyOf next to a $ref with the referenced schema.
    A schema in components that is only a $ref takes the description and deprecated written next to it.
  • Updated @redocly/openapi-core to v2.84.0.

@redocly/cli@2.84.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 14:01
b0b5d7e

Minor Changes

  • Added support for the OAuth2 clientCredentials and password flows to the x-security extension in Respect.

Patch Changes

  • Fixed an issue where the struct rule didn't report an Arazzo criterion that has a type and no context.

  • Fixed an issue where the struct rule reported an Arazzo request body that had no payload, even though the field was optional.

  • Fixed an issue where the drift and proxy commands skipped the schema-consistency rule with the Maximum call stack size exceeded warning when a schema had a discriminator with many values.

  • Fixed an issue where the drift and proxy commands checked a value against a recursive schema only down to the first level of recursion, so a mismatch below it was not reported.

  • Fixed an issue where the generate-client command typed a schema as unknown when its $ref pointed at a schema that was itself only a $ref.

  • Fixed an issue where the generate-client command dropped the keywords next to a schema $ref in OpenAPI 3.1 and later descriptions.
    The generated types and schemas combine the properties, required, allOf, oneOf, and anyOf next to a $ref with the referenced schema.
    A schema in components that is only a $ref takes the description and deprecated written next to it.

  • Updated the project clone command to address the project by its organization and project IDs in the Git remote URL, also when the project is given by slugs.

    Updated the project pr create and project pr status commands to call the Redocly platform API by IDs, and to show the Git command that switches a clone made with slugs to IDs.

  • Fixed an issue where Respect failed steps that called a workflow from a previously run Arazzo description with Property time is not expected here and Property checks is not expected here errors.

  • Fixed an issue where the Respect schema check failed with the Ajv error: Maximum call stack size exceeded message when a response schema had a discriminator with many values.

  • Fixed an issue where the Respect schema check failed with the Ajv error: discriminator: requires oneOf or anyOf composite keyword message when a response schema had a discriminator without oneOf or anyOf.
    Respect checks such a response against the rest of the schema.

  • Fixed an issue where Respect ignored the rfc9535 version of a jsonpath criterion.
    A criterion with type: { type: jsonpath, version: rfc9535 } queries its context value the same way as a Selector Object, so $[?(@.category == "dessert")] filters the items of a list.

  • Fixed an issue where Respect failed a step with the Maximum call stack size exceeded error when a request or a response was described with a recursive schema.
    Respect checks a response against a recursive schema instead of skipping the schema check with a warning.

  • Fixed an issue where the Respect schema check failed with the must have required property message when a response did not have a required property that is marked writeOnly through allOf.

  • Updated @redocly/client-generator to v0.10.7.

  • Updated @redocly/openapi-core to v2.84.0.

  • Updated @redocly/platform-integration to v2.84.0.

  • Updated @redocly/respect-core to v2.84.0.

@redocly/respect-core@2.83.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 10:01
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.

@redocly/recheck@2.83.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 10:01
4da55fa

Patch Changes

  • Updated @redocly/openapi-core to v2.83.0.

@redocly/platform-integration@2.83.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 10:01
4da55fa

Patch Changes

  • Updated @redocly/config to v0.76.0.
  • Updated @redocly/config to v0.77.0.
  • Updated @redocly/openapi-core to v2.83.0.

@redocly/openapi-core@2.83.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 10:01
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.

Patch Changes

  • Updated @redocly/config to v0.76.0.
  • Updated @redocly/config to v0.77.0.