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
{{ message }}
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.
Hi,
I modified the addModels function in the swagger.js file to the following. This allows the separation of models into more than one file.
It appends to, rather than replaces, the models collection in swagger.js.
// adds models to swagger
function addModels(models) {
if(!allModels['models']) {
allModels = models;
} else {
for(k in models['models']) {
allModels['models'][k] = models['models'][k];
}
}
return this;
}
This lets me organize my code a little better, and the models.js file does not get out of hand.
Not sure it is an issue really, but just thought I would put it out there as an idea.
Rich
The text was updated successfully, but these errors were encountered: