Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requestModels is mandatory for a get function? #21

Open
danielvera64 opened this issue Feb 28, 2018 · 6 comments
Open

requestModels is mandatory for a get function? #21

danielvera64 opened this issue Feb 28, 2018 · 6 comments

Comments

@danielvera64
Copy link

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
Copy link

Still an error :/

@diestrin
Copy link

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
Copy link
Collaborator

nfour commented Apr 4, 2018

Can do!

@rzetterberg
Copy link

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

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
Copy link

hsz commented Jun 18, 2018

@nfour Any news? Is this project dead already?

@kivlor
Copy link

kivlor commented Jul 4, 2018

published.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants