Skip to content

Server selection displays secondary, unsynchronised dropdown #1026

@ShadowLNC

Description

@ShadowLNC

We've been using RapiDoc for a while now, and we're quite happy with it (thanks for maintaining it!) - this appears to be a recent change, we only noticed this yesterday, but it might have been there for a few weeks, I am not sure.

Testing with https://rapidocweb.com/examples/example1.html

If I use this OpenAPI 3.1.0 schema with multiple servers (admittedly not the local schema I was testing with, which is an internal API, but it shows the same issue), then each endpoint has its own dropdown for the server selection, which is not linked to the main server section at the top.

There appears to be 3 problems with this new dropdown:

  1. It's not synced (to the main section, or even other dropdowns), so you can have a different server selected for each endpoint - this is confusing and causes requests to go to unintended servers
  2. It lists each server twice
  3. It doesn't seem to work with parameterised server URLs like {protocol}://localhost

It seems like it might only show up in OpenAPI 3.1.0 specs? Is there a way to disable this new dropdown? I couldn't find anything in the docs about it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions