ST.NSwag.ServerSourceGenerator
0.0.3
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package ST.NSwag.ServerSourceGenerator --version 0.0.3
NuGet\Install-Package ST.NSwag.ServerSourceGenerator -Version 0.0.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ST.NSwag.ServerSourceGenerator" Version="0.0.3"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ST.NSwag.ServerSourceGenerator --version 0.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ST.NSwag.ServerSourceGenerator, 0.0.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ST.NSwag.ServerSourceGenerator as a Cake Addin #addin nuget:?package=ST.NSwag.ServerSourceGenerator&version=0.0.3 // Install ST.NSwag.ServerSourceGenerator as a Cake Tool #tool nuget:?package=ST.NSwag.ServerSourceGenerator&version=0.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ST.NSwag.ServerSourceGenerator
Generates Web API/ASP.NET Core controllers from a OpenAPI specification.
This package is source generator for great nswag tool. Inspired by H.NSwag.Generator
Install
Install-Package ST.NSwag.ServerSourceGenerator
Usage
- Put openapi specification in project dir and add AdditionalFiles tag to project
<ItemGroup>
<AdditionalFiles Include="example.openapi.yaml" />
</ItemGroup>
or link specification outside project dir
<ItemGroup>
<AdditionalFiles Include="..\specs\linkedExample.openapi.yaml" Link="linkedExample.openapi.yaml" />
</ItemGroup>
- Add .nswag settings file in project dir with exact same name.
Example: example.openapi.yaml → example.openapi.yaml.nswag
Faq
- How to generate or edit .nswag file?
Use NSwagStudio
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.