ST.NSwag.ServerSourceGenerator 0.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package ST.NSwag.ServerSourceGenerator --version 0.0.2
NuGet\Install-Package ST.NSwag.ServerSourceGenerator -Version 0.0.2
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.2">
  <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.2
#r "nuget: ST.NSwag.ServerSourceGenerator, 0.0.2"
#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.2

// Install ST.NSwag.ServerSourceGenerator as a Cake Tool
#tool nuget:?package=ST.NSwag.ServerSourceGenerator&version=0.0.2

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

  1. 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>
  1. 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.

Version Downloads Last updated
0.0.4 359 11/19/2022
0.0.3 325 11/12/2022
0.0.2 356 11/1/2022
0.0.1 413 10/30/2022