-
Notifications
You must be signed in to change notification settings - Fork 127
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
requestBody and requestModels not being generated. #34
Comments
THe project is kinda dead, and this bug has been reported couple of times but fixes are not approved and merged back. So there are couple of efforts to fix this issue and other issues in different folks. The one I just created have this issue and other issues fixed. Please try it out : https://github.com/kzhou57/serverless-openapi-documentation And you can also the modify the package.json to point direct from my version :
|
Thank you so much. It works like a clock now. |
Glad it helps you . |
@kzhou57 hi...so this solved things on my Mac machine. And im really grateful to u for that. But now i just got new laptop, and try to clone my repo back. When i run
Im not sure why this is happening. Looks like there's a conflict between the plugins. If i erase the plugin from package.json, and readded the official one. I can run the application just fine. This happened on both my linux and window 10. |
Hi Mike, it probably related to the npm version , the line "serverless-openapi-documentation": "github:kzhou57/serverless-openapi-documentation", in package json is requiring a version of npm > 5.0 . Unfortunately if the npm didn't install my patch version correctly, it didn't report a failure, so later on when serverless trying to call the plugin, it said not found. Please check the npm version, npm -v will tell you. |
my npm version is 6.9.0. and node is 10.15.3. |
hmmm, it's interesting, can you check in your node_modules folder, does this file exists ? node_modules/serverless-openapi-documentation/dist/index.js The issue usually the error 'Serverless plugin "serverless-openapi-documentation" not found.' means node cannot find the installed package as a valid node component. If the above file not exists, it means it's the npm problem, which should compile the type script from github and setup the package correctly. If the file exists, then it's a problem somewhere else. |
i guess ure rite. I cant find the index.js. the compilation from typescript must've gone wrong somehow. |
i think i figured out the problem. npm cant compile the source typescript file until i install |
I am glad you figured it out. |
Installing version 0.3.0 instead of 0.4.0 solved this for me.
|
i try to follow the example in the documentation. But i cant get the
requestBody
, andrequestModels
to generated in the documentation file.im not sure what went wrong. but the
responseModels
work just fine.The text was updated successfully, but these errors were encountered: