Skip to content

change specification to permit $ref of server objects #2338

@nlundquist

Description

@nlundquist

The spec forbids the use of $refs to define entries in the servers array. The unfortunate result of this is duplication of information in several specification files, even though the services defined in these specs are all hosted behind the same ingress host.

Aside from this issue confirming the problem: #1527, I couldn't find any discussion around this.

I'm guessing that the design rationale was all the endpoints present on a host/ingress ought to be defined in the same file, so there's no need to share server definitions. However, considering that a very large number of services, each with their own versioning, built by differing teams, could all be hosted on a single ingress- it becomes attractive to allow each service to own their own OpenAPI spec.

However, with this duplicated sever information now in each service's spec files, potentially dozens of files will need to be updated when a server object change occurs.

Has this issue been discussed by the committee before? What downsides are there to allowing this that I'm failing to see?

Thanks for considering this request maintainers 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    re-use: ref-everywhereRequests to support referencing in more / all places

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions