alexjomin / openapi-parser

Simple and still naive openapi documentation generator from comments of your Go code.
18 stars 8 forks source link

Operation Object #4

Open denouche opened 6 years ago

denouche commented 6 years ago

Hello,

https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#operationObject

Maybe we could rename the type action struct for match the name of the model in the specification: Operation

Then these properties are missing:

And the properties Headers is not in the specification.

It could also be nice if we supports the specification extensions: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#specificationExtensions