-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #694 from SteveDunn/improve-swashbuckle-mapping
Improve Swashbuckle generated code
- Loading branch information
Showing
27 changed files
with
241 additions
and
752 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using Vogen; | ||
|
||
[assembly: VogenDefaults( | ||
openApiSchemaCustomizations: OpenApiSchemaCustomizations.GenerateSwashbuckleMappingExtensionMethod)] | ||
|
||
namespace WebApplication.Shared; | ||
|
||
|
||
[ValueObject] | ||
public partial struct SharedStruct; | ||
|
36 changes: 36 additions & 0 deletions
36
samples/WebApplication.Shared/WebApplication.Shared.csproj
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,36 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Library</OutputType> | ||
<TargetFramework>net8.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<OpenApiMode>Swashbuckle</OpenApiMode> | ||
<UseLocallyBuiltPackage>true</UseLocallyBuiltPackage> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition=" '$(OpenApiMode)' == 'MicrosoftAndScalar'"> | ||
<TargetFramework>net9.0</TargetFramework> | ||
<DefineConstants>USE_MICROSOFT_OPENAPI_AND_SCALAR</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<ItemGroup Condition=" '$(OpenApiMode)' == 'MicrosoftAndScalar'"> | ||
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.0-preview.4.24267.6"/> | ||
<PackageReference Include="Scalar.AspNetCore" Version="1.1.1"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(OpenApiMode)' == 'Swashbuckle'"> | ||
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.2"/> | ||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(UseLocallyBuiltPackage)' != ''"> | ||
<PackageReference Include="Vogen" Version="999.9.*"/> | ||
</ItemGroup> | ||
|
||
<ItemGroup Condition=" '$(UseLocallyBuiltPackage)' == ''"> | ||
<PackageReference Include="Vogen" Version="999.9.10219943"/> | ||
</ItemGroup> | ||
|
||
|
||
</Project> |
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
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
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
Oops, something went wrong.