You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I do sails lift I get an error - Trying to create an association on a model that doesn't have a Primary Key.
This error is due to the default models (contact and group) that are part of sails-swagger package under dist/api/models
These 2 models do not have a primary key specified and hence the above error. If I edit the above models and include a primary key it works with out any issue and i am able to view the documentation.
Editing the models in the package is not an option, so i do i get around this issue
The text was updated successfully, but these errors were encountered:
You should not install and use sails-swagger from the npm because it's outdated and not maintained. Rather use your own forked sails-swagger project, or use someones else, with the updates matching your project needs.
The text was updated successfully, but these errors were encountered: