Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support alternative servers in PathItems and Operations #41

Open
charjr opened this issue Oct 27, 2022 · 0 comments
Open

Support alternative servers in PathItems and Operations #41

charjr opened this issue Oct 27, 2022 · 0 comments
Labels
external An issue that affects the users

Comments

@charjr
Copy link
Collaborator

charjr commented Oct 27, 2022

Currently alternative servers are only supported if you use cached builders.

Building processors on the fly with ResponseBuilder and RequestBuilder currently only support Root level servers:

private function matchServer(Cebe\OpenApi $openAPI, string $url): string
{
$servers = $openAPI->servers;

private function matchServer(Cebe\OpenApi $openAPI, string $url): string
{
$servers = $openAPI->servers;

We currently match servers first, which means we do not know which path or operation to take servers from.

@charjr charjr changed the title Support alternative servers found in both Path or PathItem objects Support alternative servers arrays found in PathItems and Operations Apr 17, 2023
@charjr charjr changed the title Support alternative servers arrays found in PathItems and Operations Support alternative servers in PathItems and Operations Apr 17, 2023
@charjr charjr added this to the OAPI 3.0 milestone Apr 19, 2023
@carnage carnage modified the milestones: OAPI 3.0, better codegen Dec 21, 2023
@charjr charjr added the external An issue that affects the users label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external An issue that affects the users
Projects
None yet
Development

No branches or pull requests

2 participants