Describe the bug
When you try to use the lint command and define API inline as a URL from API Registry, which has a branch query string, the command seems to break.
At the same time, it works when used inside the apis section of the configuration file.
Example:
redocly lint "https://api.redocly.com/registry/bundle/example/v1/latest/openapi.yaml?branch=release"
The ?branch=release part seems to break the command.
To Reproduce
Steps to reproduce the behavior:
Add a definition to the API Registry or open an existing one.
Describe the bug When you try to use the
lint
command and define API inline as a URL from API Registry, which has a branch query string, the command seems to break. At the same time, it works when used inside theapis
section of the configuration file.Example:
redocly lint "https://api.redocly.com/registry/bundle/example/v1/latest/openapi.yaml?branch=release"
The?branch=release
part seems to break the command.To Reproduce Steps to reproduce the behavior:
Expected behavior The lint command works as expected when used with URLs from the API Registry.
Logs N/a
OpenAPI definition N/a
Redocly Version(s) latest
Node.js
Version(s) 15Additional context Some context can be found here: redoc-ly.slack.com/archives/C02UHE7EL3E/p1661807377826659