-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Description
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 🙏