Skip to content

@redocly/cli@2.87.0

Choose a tag to compare

@github-actions github-actions released this 02 Dec 15:53
5deee6a

Minor Changes

  • Added the spec-no-invalid-additionalOperations rule, which reports an entry in the additionalOperations map of an OpenAPI 3.2 path item for a method that has its own field, such as GET.
  • Added the spec-no-invalid-parameter-combinations rule for OpenAPI 3.x descriptions.
    The rule reports a path parameter without required: true or with { or } in its name, and a parameter or a header that uses schema together with content, or example together with examples.
  • Added the spec-no-invalid-xml-combinations rule, which reports an XML Object of an OpenAPI 3.2 description that has the nodeType field together with the deprecated attribute or wrapped field.
  • Added two checks to the spec-querystring-parameters rule: it reports a parameter with in: querystring that has no content field, or that has the schema, style, explode, or allowReserved field.

Patch Changes

  • Fixed an issue where the struct rule did not report an arazzo field that was not a version number of the Arazzo specification, such as 1.0.x.
  • Fixed an issue where the experimental score command ignored the settings of an API in apis, such as its decorators.
  • Fixed an issue where the score, stats, inspect-node-types, join, and split commands displayed an unexpected error with a stack trace instead of a parse error when an API description had invalid YAML.
  • Fixed an issue where a digest security scheme ignored the order of x-security entries.
    The scheme overrode the Authorization header set by a later entry, and its first request sent the Authorization header set by an earlier entry or by a parameter.
  • Fixed an issue where the struct rule did not report the allowReserved and allowEmptyValue fields in a Header Object of an OpenAPI 3.x description.
    The OpenAPI specification does not allow these fields in a Header Object.
  • Fixed an issue where the join command with the --prefix-components-with-info-prop option reported false component conflicts.
  • Fixed an issue where lint reported the boolean schemas true and false in OpenAPI 3.1 and 3.2 descriptions as invalid.
  • Fixed an issue where lint reported the cookie value of a parameter's style field in OpenAPI 3.2 descriptions as invalid.
  • Fixed an issue where the struct rule did not report an openapi field that was not a version number of the OpenAPI specification, such as 3.1.x.
  • Fixed an issue where the remove-x-internal decorator left security requirements that used a removed security scheme.
  • Fixed an issue where the security-defined rule reported a security requirement that names a security scheme by its URI in OpenAPI 3.2 descriptions.
  • Fixed an issue where the spec-querystring-parameters rule did not report a second in: querystring parameter of an operation when one of the two was a $ref.
  • Updated @redocly/openapi-core to v2.87.0.
  • Updated @redocly/platform-integration to v2.87.0.
  • Updated @redocly/respect-core to v2.87.0.
  • Fixed an issue where Respect failed with r.trim is not a function when a bearer, OAuth2, or OpenID Connect token in x-security was written as a number.