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

Add Server default with schema/host #2656

Open
timheuer opened this issue May 30, 2023 · 1 comment
Open

Add Server default with schema/host #2656

timheuer opened this issue May 30, 2023 · 1 comment

Comments

@timheuer
Copy link

The swagger.[json|yaml] should emit a servers object in the OpenAPI specification using the running server scheme/host by default. This helps complete the default configuration with little overrides quickly.

It saves from writing the code of AddServer() when the default host of the API should be at least one of the servers. Or give an opt-out way.

timheuer added a commit to timheuer/Swashbuckle.AspNetCore that referenced this issue Jun 5, 2023
@martincostello
Copy link
Collaborator

#2663 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants