Major Changes
- Removed backward compatibility for the
specrule. Usestructinstead. - Removed support for the deprecated
apiDefinitionsoption in the Redocly config. Useapisinstead.
Removed thelabelsfield within theapissection, 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.openapiandfeatures.mockServerconfiguration options. UseopenapiandmockServerdirectly instead. - Removed backward compatibility for the deprecated
lintandstyleguideoptions in the Redocly config.
Userules,decoratorsand other related options on the root level instead. - Removed the deprecated
disallowAdditionalPropertiesoption support in rules. UseallowAdditionalPropertiesinstead. - Removed support for the deprecated
themeproperty of Redocly config.
All the properties ofthemeare now available in the config root. - Removed the deprecated
path-excludes-patternsandinfo-license-urlrules. - Removed the deprecated
undefinedassertion. Usedefinedinstead. - 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 theloginandpushcommands to work exclusively with Reunite.
Removed thepreview-docscommand as part of platform modernization.
Use thepreviewcommand instead. - Removed support for the deprecated
referenceDocsoption, 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-securityextension 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
nullablevalidation from thestructrule into a newnullable-type-siblingrule for OpenAPI 3.0. This allows users to disablenullablevalidation separately from other structural checks. -
Configured the
specruleset for OpenAPI, AsyncAPI, Arazzo, and Overlay specifications.
This ruleset is designed to strictly follow the specifications. -
Added the
no-duplicated-tag-namesrule to check for duplications in thetagsfield in API descriptions. -
Enabled
no-required-schema-properties-undefined,no-schema-type-mismatch, andno-enum-type-mismatchrules for AsyncAPI and Arazzo specifications.
Adjusted the rules' severities in therecommendedandminimalrulesets. Refer to the following table:Rule \ Ruleset recommended minimal no-required-schema-properties-undefined off->warnoff->warnno-enum-type-mismatch errorwarnno-schema-type-mismatch warn->erroroff->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
respectcommand to improve test execution control.
Patch Changes
- Fixed plugins validation in config files referenced in the
extendssection. - Fixed
no-undefined-server-variablecrash when encounteringnullvalues in the server list. - Refactored
@redocly/respect-coreto eliminate Node.js-specific dependencies, improving cross-platform compatibility. - Updated Redoc to v2.5.0.
- Fixed alias detection when using
--configfrom a different folder than the current working directory. - Resolved an issue where
dotenv@16.6.0injected an unintended message into the output. - Fixed Redocly CLI to correctly read
residencyfrom 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.