Skip to content

Latest commit

 

History

152 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NuGet

Install-Package H.NSwag.Generator

Usage

The generator generates code based on any .nswag file in the AdditionalFiles ItemGroup. The generator will automatically detect all NSwag files inside the project directory, there is no need to add them manually.

<ItemGroup>
  <AdditionalFiles Include="openapi.nswag" />
</ItemGroup>

Global options

Enable caching - suitable for cases where your openapi specification rarely changes or you get it via url.

<PropertyGroup>
  <NSwagGenerator_UseCache>true</NSwagGenerator_UseCache>
</PropertyGroup>

Contacts

About

C# Source Generator for NSwag.

Topics

Resources

Stars

21 stars

Watchers

1 watching

Forks

Contributors

Languages