79552835

Date: 2025-04-03 11:55:03
Score: 2
Natty:
Report link

After building (program.cs) the application var app = builder.Build(); When defining the use of swagger, do: app.UseSwagger(c => { c.OpenApiVersion = Microsoft.OpenApi.OpenApiSpecVersion.OpenApi2_0; }); With this, you will specify the version of OpenApi to be used. Change if necessary.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Leandro Leite