swagger generate an error to solve the problem summary

Unable to render this definition

The provided definition does not specify a valid version field.

Please indicate a valid Swagger or OpenAPI version field. Supported version fields are swagger: "2.0" and those that match openapi: 3.0.n (for example, openapi: 3.0.0).

Solution:

api The Controller / Action added [HttpPost] or [HttpGet]

There is a problem passing parameters model.

 

Solution:

api The Controller / Action added [HttpPost] or [HttpGet]

There is a problem passing parameters model.

 

Guess you like

Origin www.cnblogs.com/llhhll/p/12010133.html