Minor Changes
- Added an
--ignore-headersoption to the experimentaldriftandproxycommands.
It takes a comma-separated list of header names to skip in undocumented-header checks, and a trailing*matches by prefix (for examplex-consumer-*).
Use it to silence headers a gateway or proxy adds that are not part of the API contract. - Added an experimental
generate-speccommand that infers an OpenAPI description from recorded HTTP traffic.
Patch Changes
-
Fixed the
driftcommand'sschema-consistencyrule reporting false-positive "Undocumented query parameter" findings fordeepObject-style query parameters.
Traffic keys likenamespace[id]=...&namespace[name]=...are now matched to the documentednamespaceparameter, and the reconstructed object is validated against the parameter schema. -
Fixed an issue where the
driftcommand'sschema-consistencyrule reported false-positive request findings for exchanges the server rejected with a4xxclient error.
For example: missing required parameter, missing required body, request-body schema mismatch.
A4xxresponse means the server never accepted the request.
Validating it against the operation's success-path contract flagged the server's own correct rejection as drift.
Response-side validation still runs, so a documented error response whose shape differs from reality is still reported. -
Fixed an issue where the
joincommand silently dropped path-levelx-*extensions with non-string values. -
Updated js-yaml from
4.2.0to5.2.1.
Fixed an issue where strings that look like numbers with underscores (for example'12_34') had quotation marks removed by thebundlecommand.
These strings stay quoted in the output.Note: YAML parsing is stricter: a multi-line flow collection whose closing bracket is not indented deeper than its parent key is now a parse error.
Parse errors are reported at the offending token instead of the end of the document. -
Fixed an issue where the
driftcommand'ssecurity-baselinerule reported false-positive "credential exposure over insecure HTTP transport" warnings for traffic captured against loopback hosts, for example:localhost,*.localhost,127.0.0.0/8,[::1].
Sandboxed recordings no longer produce transport warnings. -
Fixed an issue where the
bundlecommand rewrote internal$refs pointing to other$refs.
The issue caused AsyncAPI 3 operationmessagesreferences to point tocomponentsinstead of channel messages. -
Updated @redocly/openapi-core to v2.40.0.