forked from domaindrivendev/Swashbuckle.AspNetCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes an issue where single file AOT .NET 8 project does not start if…
… swagger is registered
- Loading branch information
Showing
17 changed files
with
301 additions
and
42 deletions.
There are no files selected for viewing
This file contains 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 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 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
24 changes: 24 additions & 0 deletions
24
test/DotSwashbuckle.AspNetCore.SwaggerGen.Test/DotSwashbuckle.AspNetCore.SwaggerGen.Test.xml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
test/DotSwashbuckle.AspNetCore.SwaggerGen.Test/Fixtures/PingController.cs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using Microsoft.AspNetCore.Mvc; | ||
|
||
/// <summary> | ||
/// Highly contrived example to show how Swashbuckle doesn't pull in XML Doc comments | ||
/// when referenced via the `include` tag. | ||
/// </summary> | ||
/// <remarks> | ||
/// Has 2 methods - one that has the docs inline, | ||
/// and one that has the docs referenced in a separate file. | ||
/// </remarks> | ||
[ApiController] | ||
[Route("[controller]")] | ||
public class PingController | ||
{ | ||
/// <summary> | ||
/// Does a ping. | ||
/// </summary> | ||
/// <returns>Returns a pong.</returns> | ||
/// <remarks>XML doc comments are referenced in the same file.</remarks> | ||
[HttpGet] | ||
[Route("embedded")] | ||
public string PingEmbedded() => "embedded pong"; | ||
|
||
/// <include file='./PingController.xml' path='/PingController/ReferencedPing'/> | ||
[HttpGet] | ||
[Route("referenced")] | ||
public string ReferencedPing3() => "referenced pong"; | ||
} |
8 changes: 8 additions & 0 deletions
8
test/DotSwashbuckle.AspNetCore.SwaggerGen.Test/Fixtures/PingController.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<PingController> | ||
<ReferencedPing> | ||
<summary>Does a ping.</summary> | ||
<returns>Returns a pong.</returns> | ||
<remarks>XML doc comments are included from a separate file.</remarks> | ||
</ReferencedPing> | ||
</PingController> |
Oops, something went wrong.