temando / serverless-openapi-documentation

Serverless 1.0 plugin to generate OpenAPI V3 documentation from serverless configuration
MIT License
93 stars 127 forks source link

requestModels is mandatory for a get function? #21

Open danielvera64 opened 6 years ago

danielvera64 commented 6 years ago

Hi, I'm documenting my api and I have a GET function. I didnt add the requestModels tag but when I want to generate the openapi file. I get an error telling me that I need the requestModels tag.

There is a way not to include the requestModels tag for a GET function?

Thanks!

diestrin commented 6 years ago

Still an error :/

diestrin commented 6 years ago

So, I checked the code, and looks like this is already fixed, but never got released to NPM, tried to use it directly from github, but it needs to perform compilation. @nfour or @brendo, can you guys release the latest to npm?

nfour commented 6 years ago

Can do!

rzetterberg commented 6 years ago

@nfour sorry to bother you, but when do you think a npm release could happen? :slightly_smiling_face:

In the meantime @diestrin and @chuwito there's a workaround you can do. If you add requestModels: {} you won't get the error and openapi.yml will be generated. Instead you will just get a validation warning saying expected Object {} not to be empty.

hsz commented 6 years ago

@nfour Any news? Is this project dead already?

kivlor commented 6 years ago

published.