-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Add Microsoft.AspNetCore.OpenApi to the webapiaot template (with an optional flag to disable it) #60337
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
Merged
captainsafia
merged 22 commits into
dotnet:main
from
sander1095:GH-59564-webapiaot-openapi
Mar 11, 2025
Merged
Add Microsoft.AspNetCore.OpenApi to the webapiaot template (with an optional flag to disable it) #60337
Changes from 7 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
3b9c7a6
Add basic set up for the new flag with translations by Copilot
sander1095 734817a
Add conditional logic to use OpenAPI
sander1095 5be274c
Add OpenAPI test to WebAPIAOT template tests
sander1095 d8693b2
Fix tests
sander1095 d0b3ce9
Add missing endif in the csproj
sander1095 ffee0b2
Add more metadata to get 404 not found in the openapi doc correctly
sander1095 94e40fd
Also add the 404 metadata to the other file
sander1095 d918e32
Change elif to else
sander1095 664bec6
Remove unnecessary 118n changes
sander1095 e225cc2
Add english translation back
sander1095 539ba41
Keep the semicolon on the same line as requested by PR review
sander1095 06112f2
Use TypedResults instead of extension methods and reduce the if else …
sander1095 8dc2ceb
Add template strings back after running `bash build.sh -test -configu…
sander1095 98332af
Merge branch 'main' into GH-59564-webapiaot-openapi
sander1095 a442d80
Add usings for TypedResults and Results/NotFound/Ok etc..
sander1095 0891a99
Add OpenAPI services to Program.Main.cs
sander1095 3c4d854
Remove http using because thats already part of the implicit usings
sander1095 63cf302
TEMP COMMIT - Removing EnableOpenAPI flags to find out why tests fail
sander1095 9674e32
Revert "TEMP COMMIT - Removing EnableOpenAPI flags to find out why te…
sander1095 983ec24
Fix assertions where we expected OpenAPI to be enabled for published …
sander1095 102bbb4
Added consistent indentation in test methods
sander1095 7cf3a0b
Fix build errors
sander1095 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.