Redoc: Overriding global x-servers

Created on 27 Sep 2017  路  3Comments  路  Source: Redocly/redoc

According to Swagger document at Overriding Global Servers, I can override global servers but with x-servers from ReDoc, is not work.

x-servers:
  - url: //example.com/api/
    description: Default server
paths:
  /oauth/get_token:
    x-servers:
      - url: https://authen.example.com
         description: Override base path for all operations with the /files path

Can anyone tell me the way to override x-servers URL? Or just customise server for specific paths

Any idea?

bug

Most helpful comment

@vietnguyen010 thanks. This is not supported by ReDoc yet.
Should be fixed with the next major release.

All 3 comments

@vietnguyen010 thanks. This is not supported by ReDoc yet.
Should be fixed with the next major release.

Any update on this feature? I'd hate to have to force this with JS.

It should work just fine with the latest [email protected]
Closing this issue.
Feel free to reopen if this is still not fixed

Was this page helpful?
0 / 5 - 0 ratings