NSwag vs Swashbuckle [closed]
Asked Answered
S

1

38

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?

Sherris answered 20/7, 2021 at 9:1 Comment(1)
I started using NSwag a while ago when Swashbuckle did not support OpenApi v3 standard yet. I think it supports that now.Recipe
S
28

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.

Sherris answered 22/7, 2021 at 8:39 Comment(1)
Note that Swashbuclk.AspNetCore is being removed in .NET 9. See github.com/dotnet/aspnetcore/issues/54599Electrodynamics

© 2022 - 2024 — McMap. All rights reserved.