sails-swagger | Swagger integration for sails.js | REST library
kandi X-RAY | sails-swagger Summary
kandi X-RAY | sails-swagger Summary
Swagger integration for sails.js
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Gets prefixes for blueprints
- Format a prefix
sails-swagger Key Features
sails-swagger Examples and Code Snippets
Community Discussions
Trending Discussions on sails-swagger
QUESTION
When trying to run my simple Sails.JS app (with swaggerui included), I'm getting the following error:
...ANSWER
Answered 2018-Jan-05 at 16:57When using sails-swagger you also have to create a config file for swagger in the config directory of your sails application. This config file sets a pkg variable that points to the package.json file of your sails application.
The error above is basically saying that property pkg cannot be found and hence swagger will not work.
To solve this issue, first create a file called swagger.js in the config directory.
Then add the following to the swagger.js file
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install sails-swagger
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page