Rico Suter edited this page Nov 17, 2018 · 13 revisions

This generator uses the ASP.NET Core API Explorer service to generate specs and will eventually supersede the reflection based generator WebApiToSwaggerGenerator. It is recommended to use this generator for new projects and also start migrating existing projects.

The generator can be used via middleware or CLI (project or assembly).

Important: If you run this generator via NSwag.MSBuild as part of your csproj build (after build target), you need to set NoBuild to true to avoid endless build recursions...

Remarks: If you are using .NET Core >= v2.1, you may need to set the CompatibilityVersion.

The generator exposes the same extension points and behavior as the WebApiToSwaggerGenerator:


TODO: Improve this page (copy over docs)

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.