Skip to content
CAI
Produce a survey ↗Verify a survey

RicoSuter/NSwag

NSwag is a .NET toolset for generating OpenAPI (Swagger) documentation and client code from API specifications or ASP.NET Core projects. It provides a comprehensive suite of code generators for C# and TypeScript, supporting various HTTP client libraries and frameworks. The system also includes a graphical user interface (NSwagStudio) and a command-line interface for managing configuration and executing generation tasks. Additionally, it offers middleware and attributes for integrating Swagger UI, ReDoc, and OpenAPI document generation into web applications.

51.9

Adequate · 5 August 2026

22k

lines of production code

C#

primary language

1

bus factor · 336 authors in all

3

measurements over time

CAI band scale
CAI trend line

How it got here

2015–2016 · OpenAPI 3.0 and modernization

This period focused on modernizing the NSwag codebase by introducing OpenAPI 3.0 model classes and attributes, while refactoring the NSwagStudio UI to support multiple documents and modular generator views. The team also overhauled the build infrastructure, added .NET Core console hosting, and expanded integration capabilities for ASP.NET Core, OWIN, and various UI tools.

28 changes

2017–2018 · Architecture refactoring and CLI expansion

This period focused on a comprehensive architectural refactoring of the C# and TypeScript code generators, organizing models into dedicated namespaces and modularizing templates for better maintainability. The team also significantly expanded the NSwag CLI with new commands and granular settings, while adding extensive test coverage and improving middleware integration for Swagger UI and ReDoc.

25 changes

2019 · OpenAPI generation refactoring

This period focused on refactoring the OpenAPI document generation pipeline into a modular, processor-based architecture, introducing new settings and context objects for improved configurability. Significant additions include YAML support for OpenAPI documents, a new CLI command for document-based generation, and extensive test coverage for ASP.NET Core and Web API scenarios.

29 changes

2020–2025 · Modern .NET and build system modernization

The project modernized its build infrastructure by migrating to NUKE and GitHub Actions, while simultaneously expanding support for the latest .NET versions (8, 9, and 10) through new sample applications and test suites. This period focused on updating the codebase to ensure compatibility with recent .NET runtimes and improving developer experience with comprehensive CLI parsing and automated CI/CD pipelines.

11 changes

CAI lens gauges

Survey your own repository

RicoSuter/NSwag was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point the surveyor at a repository you know and see whether you agree with it.

Survey a repository

About this page

  • The description of this project is derived from its own commit history, not from its README.
  • The score is its highest published measurement, taken on 5 August 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 2389c0721d — the exact code this score is about.
  • Scored under rubric rubric-2026.08.19. Score the same commit under that rubric and you get the same number.
CAI link cards