Skip to content
This repository was archived by the owner on Jul 28, 2026. It is now read-only.

feat(custom-plugin-decorators): add set-servers-urls example - #50

Merged
tatomyr merged 6 commits into
Redocly:mainfrom
TKostrzewski:feat/add-set-server-url-plugin-example
Jul 10, 2026
Merged

feat(custom-plugin-decorators): add set-servers-urls example#50
tatomyr merged 6 commits into
Redocly:mainfrom
TKostrzewski:feat/add-set-server-url-plugin-example

Conversation

@TKostrzewski

Copy link
Copy Markdown
Contributor

No description provided.

@TKostrzewski
TKostrzewski force-pushed the feat/add-set-server-url-plugin-example branch from 0e91bee to 916c932 Compare October 21, 2025 13:51
@tatomyr
tatomyr requested a review from JLekawa July 10, 2026 09:20

A custom plugin/decorator pair that sets the API server(s) URL(s) of the OpenAPI specification. If a `servers` field is already present, it will be overwritten.

The [replace servers URL plugin example](https://redocly.com/docs/cli/guides/replace-servers-url), unfortunately, does not account for when the `servers` field is not already present in the OpenAPI specification.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TKostrzewski I wonder if it wouldn't be better to simply update the guide itself? 🙂
Jus in case, the source lies here: https://github.com/Redocly/redocly-cli/blob/main/docs/%40v2/guides/replace-servers-url.md.

Comment thread custom-plugin-decorators/set-servers-urls/README.md Outdated
Comment thread custom-plugin-decorators/set-servers-urls/README.md Outdated
Comment thread custom-plugin-decorators/set-servers-urls/README.md Outdated
Comment thread custom-plugin-decorators/set-servers-urls/README.md Outdated
Comment thread custom-plugin-decorators/set-servers-urls/README.md Outdated
Comment thread custom-plugin-decorators/set-servers-urls/set-servers-urls-decorator.js Outdated
Comment thread custom-plugin-decorators/set-servers-urls/README.md Outdated
@tatomyr
tatomyr force-pushed the feat/add-set-server-url-plugin-example branch from cacdeb3 to a193727 Compare July 10, 2026 11:31
@tatomyr
tatomyr merged commit c1cd8e1 into Redocly:main Jul 10, 2026
@tatomyr

tatomyr commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Thanks for the contribution @TKostrzewski!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants