35

I've read in the documentation that "The two main OpenAPI implementations for .NET are Swashbuckle and NSwag" but what are the differences between them?

Stanislav
  • 4,389
  • 2
  • 33
  • 35
  • I started using NSwag a while ago when Swashbuckle did not support OpenApi v3 standard yet. I think it supports that now. – Zeshan Munir Sep 14 '22 at 18:54

1 Answers1

26

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.

Stanislav
  • 4,389
  • 2
  • 33
  • 35