github Redocly/redocly-cli @redocly/cli@2.84.0

3 hours ago

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.

Don't miss a new redocly-cli release

NewReleases is sending notifications on new releases.