Aspnetcore.docs: Swagger or OpenAPI

Created on 8 Dec 2018  Â·  4Comments  Â·  Source: dotnet/AspNetCore.Docs

"OpenAPI is preferred" ... and that's the last time that OpenAPI is mentioned. It's "Swagger" all the way down. Just sayin'.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

P2 Source - Docs.ms doc-bug

Most helpful comment

good post!

All 4 comments

@scottaddie this is fixed in your PR - right?

For me personally Swagger is v2 and OpenAPI is v3 (but OpenAPI was also used in the v2 era). So essentially they can be used interchangeably but eventually we should only use OpenAPI - because Swagger is like a propriatery implementation of OpenAPI. The problem is that Swagger is much more known in the community...

good post!

Nuget has got Microsoft.OpenAPI and Swagger. For API documentation, can we use Microsoft.OpenAPI only? Without Microsoft.OpenAPI, swagger does all. What is the role of Microsoft.OpenAPI then? I cannot find any sample of Microsoft.OpenAPI to do Swagger UI style documentation. In the past, visual studio api project did all this as default. But not anymore.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

YeyoCoder picture YeyoCoder  Â·  3Comments

davisnw picture davisnw  Â·  3Comments

StevenTCramer picture StevenTCramer  Â·  3Comments

Rick-Anderson picture Rick-Anderson  Â·  3Comments

serpent5 picture serpent5  Â·  3Comments