core icon indicating copy to clipboard operation
core copied to clipboard

Undesired "servers" on each operation - Operation Servers config in v3.3 does not seem to work

Open BernardA opened this issue 1 year ago • 0 comments

API Platform version(s) affected: 3.3.11

Description

Upgrading from 3.1 to 3.3 noticed that the servers are shown on try-out for each operation, which was not the case before . It is fine as such, but that's not a feature we want to have displayed at each operation.

I noticed that there's the "servers" config and tried to set it to null our an empty array, but the servers are still shown.

image

How to reproduce

operations: [
            new GetCollection(
                openapi: new Operation(
                    servers: null,

Possible Solution

Additional Context

It may be the case that the "servers" config on Operation is not the right place to remove the servers from each operation, but the bottom line is that it should be possible to remove them.

BernardA avatar Sep 25 '24 09:09 BernardA