Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSwag vs Swashbuckle

I've read in the documentation that "The two main OpenAPI implementations for .NET are Swashbuckle and NSwag" but I can't find what are the differences between them. How do I choose one?

like image 480
Stanislav Avatar asked Jul 20 '21 09:07

Stanislav


Video Answer


1 Answers

I would like to share information that I have found so far. It doesn't answer my question but might be useful for others. I found a comment from RicoSuter who develops NSwag:

NSwag not only provides the functionality of Swashbuckle (Swagger generation) but also code generators. This way we can avoid incompatibilities and offer more features and a more streamlined toolchain.

But I don't accept this as the answer to my question because it doesn't have enough information to make a conscious decision about which tool to use.

I also found a great blog post that compares tools to generate typescript clients from swagger schema. But it doesn't have information about Swashbuckle because Swashbuckle doesn't generate client code.

like image 91
Stanislav Avatar answered Oct 19 '22 10:10

Stanislav