AspNetCore.Docs icon indicating copy to clipboard operation
AspNetCore.Docs copied to clipboard

Add note for Swagger 2.0 versus OpenAPI 3.0.x

Open mprabhu11 opened this issue 6 years ago • 1 comments

The steps as described above will generate the API spec in OpenAPI version 3.0.x format. This will not work if the consuming tools do not yet support that format (e.g., PowerApps/Flows custom connector setup). The following code can be used to generate Swagger 2.0 instead of OpenAPI 3.0 metadata: //use this instead of just app.UseSwagger() in Configure() above... app.UseSwagger(c => { c.SerializeAsV2 = true; });


Document Details

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

mprabhu11 avatar Dec 08 '19 04:12 mprabhu11

Moved to #16195

Rick-Anderson avatar Dec 14 '19 01:12 Rick-Anderson