Releases: Redocly/redocly-cli
@redocly/respect-core@2.0.1
Patch Changes
- Fixed an issue where multipart form-data parameters were not properly resolved and evaluated before sending requests.
- Updated @redocly/openapi-core to v2.0.1.
@redocly/openapi-core@2.0.1
Patch Changes
- Fixed an issue where the
no-required-schema-properties-undefined
rule incorrectly resolved nested$ref
s relative to the file in which they were defined.
@redocly/cli@2.0.1
Patch Changes
- Fixed an issue where the
no-required-schema-properties-undefined
rule incorrectly resolved nested$ref
s relative to the file in which they were defined. - Fixed an issue where multipart form-data parameters were not properly resolved and evaluated before sending requests.
- Updated @redocly/openapi-core to v2.0.1.
@redocly/respect-core@2.0.0
Major Changes
- Removed support for the legacy Redocly API Registry in favor of the new Reunite platform.
Reunite provides improved API management capabilities and better integration with Redocly's tooling ecosystem.
Migrated thelogin
andpush
commands to work exclusively with Reunite.
Removed thepreview-docs
command as part of platform modernization.
Use thepreview
command instead. - Migrated the codebase to ES Modules from CommonJS, bringing improved code organization and better support for modern JavaScript features.
Update to Node.js version 20.19.0+, 22.12.0+, or 23+.
Minor Changes
-
Added
x-security
extension for Respect that enables secure handling of authentication in Arazzo workflows.
Use this extension to:- Define security schemes at the step level using either predefined schemes or inline definitions
- Pass values of secrets (passwords, tokens, API keys)
- Support multiple authentication types including API Key (query, header, or cookie), Basic Authentication, Bearer Token, Digest Authentication, OAuth2, and OpenID Connect
- Automatically transform security parameters into appropriate HTTP headers or query parameters
-
Implemented automatic masking of sensitive fields (such as tokens and passwords) in response bodies to enhance security and prevent accidental exposure of secrets in logs and outputs.
-
Added new CLI options for the
respect
command to improve test execution control.
Patch Changes
- Refactored
@redocly/respect-core
to eliminate Node.js-specific dependencies, improving cross-platform compatibility. - Resolved an issue where
dotenv@16.6.0
injected an unintended message into the output. - Improved Respect's error handling when server URLs are missing from both OpenAPI descriptions and CLI options.
- Updated @redocly/openapi-core to v2.0.0.
@redocly/openapi-core@2.0.0
Major Changes
- Removed backward compatibility for the
spec
rule. Usestruct
instead. - Removed support for the deprecated
apiDefinitions
option in the Redocly config. Useapis
instead.
Removed thelabels
field within theapis
section, which was associated with the legacy Redocly API Registry product. - Replaced the
SpecVersion
,SpecMajorVersion
,OPENAPI3_METHOD
, andOPENAPI3_COMPONENT
enums with types for improved flexibility and type safety.
Removed the unusedOasVersion
enum. - Removed support for default config file names other than
redocly.yaml
. - Removed support for the deprecated
features.openapi
andfeatures.mockServer
configuration options. Useopenapi
andmockServer
directly instead. - Removed backward compatibility for the deprecated
lint
andstyleguide
options in the Redocly config.
Userules
,decorators
and other related options on the root level instead. - Removed the deprecated
disallowAdditionalProperties
option support in rules. UseallowAdditionalProperties
instead. - Removed support for the deprecated
theme
property of Redocly config.
All the properties oftheme
are now available in the config root. - Removed the deprecated
path-excludes-patterns
andinfo-license-url
rules. - Removed the deprecated
undefined
assertion. Usedefined
instead. - Removed support for the legacy Redocly API Registry in favor of the new Reunite platform.
Reunite provides improved API management capabilities and better integration with Redocly's tooling ecosystem.
Migrated thelogin
andpush
commands to work exclusively with Reunite.
Removed thepreview-docs
command as part of platform modernization.
Use thepreview
command instead. - Removed support for the deprecated
referenceDocs
option, which was related to the legacy Reference docs product. - Added support for
extends
bundling and array-based plugin configuration.
Fixed the extends order in the configuration. - Removed support for the deprecated
assert/
prefix in configurable rules. Userule/
prefix instead. - Migrated the codebase to ES Modules from CommonJS, bringing improved code organization and better support for modern JavaScript features.
Update to Node.js version 20.19.0+, 22.12.0+, or 23+. - Streamlined Redocly configuration interfaces for improved developer experience.
RemovedStyleguideConfig
class in favor of the unifiedConfig
class.
RemovedgetMergedConfig
function - useConfig.forAlias()
method instead to retrieve API-specific configurations.
Minor Changes
-
Added
x-security
extension for Respect that enables secure handling of authentication in Arazzo workflows.
Use this extension to:- Define security schemes at the step level using either predefined schemes or inline definitions
- Pass values of secrets (passwords, tokens, API keys)
- Support multiple authentication types including API Key (query, header, or cookie), Basic Authentication, Bearer Token, Digest Authentication, OAuth2, and OpenID Connect
- Automatically transform security parameters into appropriate HTTP headers or query parameters
-
Added validation for JSON Schema format.
-
Extracted
nullable
validation from thestruct
rule into a newnullable-type-sibling
rule for OpenAPI 3.0. This allows users to disablenullable
validation separately from other structural checks. -
Configured the
spec
ruleset for OpenAPI, AsyncAPI, Arazzo, and Overlay specifications.
This ruleset is designed to strictly follow the specifications. -
Added the
no-duplicated-tag-names
rule to check for duplications in thetags
field in API descriptions. -
Enabled
no-required-schema-properties-undefined
,no-schema-type-mismatch
, andno-enum-type-mismatch
rules for AsyncAPI and Arazzo specifications.
Adjusted the rules' severities in therecommended
andminimal
rulesets. Refer to the following table:Rule \ Ruleset recommended minimal no-required-schema-properties-undefined off
->warn
off
->warn
no-enum-type-mismatch error
warn
no-schema-type-mismatch warn
->error
off
->warn
Patch Changes
- Improved performance of configuration parsing.
- Updated @redocly/config to v0.26.4.
- Updated @redocly/config to v0.24.3.
- Fixed an issue where the
ignoreLastPathSegment
option of thepath-segment-plural
rule had no effect if the path contained only one segment, resulting in an error. - Fixed plugins validation in config files referenced in the
extends
section. - Refactored
@redocly/respect-core
to eliminate Node.js-specific dependencies, improving cross-platform compatibility. - Updated @redocly/config to v0.24.1.
- Fixed an issue where the config resolver grouped assertions instead of returning unchanged rules.
- Fixed Redocly CLI to correctly read
residency
from the Redocly configuration file. - Fixed incorrect validation logic for the
constructor
property.
@redocly/cli@2.0.0
Major Changes
- Removed backward compatibility for the
spec
rule. Usestruct
instead. - Removed support for the deprecated
apiDefinitions
option in the Redocly config. Useapis
instead.
Removed thelabels
field within theapis
section, which was associated with the legacy Redocly API Registry product. - Removed support for default config file names other than
redocly.yaml
. - Removed support for the deprecated
features.openapi
andfeatures.mockServer
configuration options. Useopenapi
andmockServer
directly instead. - Removed backward compatibility for the deprecated
lint
andstyleguide
options in the Redocly config.
Userules
,decorators
and other related options on the root level instead. - Removed the deprecated
disallowAdditionalProperties
option support in rules. UseallowAdditionalProperties
instead. - Removed support for the deprecated
theme
property of Redocly config.
All the properties oftheme
are now available in the config root. - Removed the deprecated
path-excludes-patterns
andinfo-license-url
rules. - Removed the deprecated
undefined
assertion. Usedefined
instead. - Removed support for the legacy Redocly API Registry in favor of the new Reunite platform.
Reunite provides improved API management capabilities and better integration with Redocly's tooling ecosystem.
Migrated thelogin
andpush
commands to work exclusively with Reunite.
Removed thepreview-docs
command as part of platform modernization.
Use thepreview
command instead. - Removed support for the deprecated
referenceDocs
option, which was related to the legacy Reference docs product. - Removed support for the deprecated
assert/
prefix in configurable rules. Userule/
prefix instead. - Migrated the codebase to ES Modules from CommonJS, bringing improved code organization and better support for modern JavaScript features.
Update to Node.js version 20.19.0+, 22.12.0+, or 23+.
Minor Changes
-
Added
x-security
extension for Respect that enables secure handling of authentication in Arazzo workflows.
Use this extension to:- Define security schemes at the step level using either predefined schemes or inline definitions
- Pass values of secrets (passwords, tokens, API keys)
- Support multiple authentication types including API Key (query, header, or cookie), Basic Authentication, Bearer Token, Digest Authentication, OAuth2, and OpenID Connect
- Automatically transform security parameters into appropriate HTTP headers or query parameters
-
Added environment variable support for CLI arguments using Yargs
.env()
method to parse environment variables with matching prefixes. -
Added validation for JSON Schema format.
-
Extracted
nullable
validation from thestruct
rule into a newnullable-type-sibling
rule for OpenAPI 3.0. This allows users to disablenullable
validation separately from other structural checks. -
Configured the
spec
ruleset for OpenAPI, AsyncAPI, Arazzo, and Overlay specifications.
This ruleset is designed to strictly follow the specifications. -
Added the
no-duplicated-tag-names
rule to check for duplications in thetags
field in API descriptions. -
Enabled
no-required-schema-properties-undefined
,no-schema-type-mismatch
, andno-enum-type-mismatch
rules for AsyncAPI and Arazzo specifications.
Adjusted the rules' severities in therecommended
andminimal
rulesets. Refer to the following table:Rule \ Ruleset recommended minimal no-required-schema-properties-undefined off
->warn
off
->warn
no-enum-type-mismatch error
warn
no-schema-type-mismatch warn
->error
off
->warn
-
Implemented automatic masking of sensitive fields (such as tokens and passwords) in response bodies to enhance security and prevent accidental exposure of secrets in logs and outputs.
-
Added new CLI options for the
respect
command to improve test execution control.
Patch Changes
- Fixed plugins validation in config files referenced in the
extends
section. - Fixed
no-undefined-server-variable
crash when encounteringnull
values in the server list. - Refactored
@redocly/respect-core
to eliminate Node.js-specific dependencies, improving cross-platform compatibility. - Updated Redoc to v2.5.0.
- Fixed alias detection when using
--config
from a different folder than the current working directory. - Resolved an issue where
dotenv@16.6.0
injected an unintended message into the output. - Fixed Redocly CLI to correctly read
residency
from the Redocly configuration file. - Improved Respect's error handling when server URLs are missing from both OpenAPI descriptions and CLI options.
- Updated @redocly/respect-core to v2.0.0.
@redocly/respect-core@2.0.0-next.9
Patch Changes
- Refactored
@redocly/respect-core
to eliminate Node.js-specific dependencies, improving cross-platform compatibility. - Updated @redocly/openapi-core to v2.0.0-next.9.
@redocly/respect-core@2.0.0-next.10
Patch Changes
- Updated @redocly/openapi-core to v2.0.0-next.10.
@redocly/openapi-core@2.0.0-next.9
Major Changes
- Replaced the
SpecVersion
,SpecMajorVersion
,OPENAPI3_METHOD
, andOPENAPI3_COMPONENT
enums with types for improved flexibility and type safety.
Removed the unusedOasVersion
enum.
Patch Changes
- Refactored
@redocly/respect-core
to eliminate Node.js-specific dependencies, improving cross-platform compatibility.
@redocly/openapi-core@2.0.0-next.10
Major Changes
- Removed support for the deprecated
theme
property of Redocly config.
All the properties oftheme
are now available in the config root.