ApplaudSolutions/mbaas#644 include Default Definitions ObjectID, x-any
This commit is contained in:
parent
3804147111
commit
952862badb
4
index.js
4
index.js
|
@ -173,9 +173,9 @@ function mountSwagger(loopbackApplication, swaggerApp, opts) {
|
|||
});
|
||||
return result;
|
||||
}, {});
|
||||
const includeDefinitions = ['ObjectID', 'x-any'];
|
||||
const includeDefaultDefinitions = ['ObjectID', 'x-any'];
|
||||
filteredSwaggerObject.definitions = _.pickBy(swaggerObject.definitions, function(val, key) {
|
||||
return key.startsWith(tenantId) || includeDefinitions.indexOf(key) !== -1;
|
||||
return key.startsWith(tenantId) || includeDefaultDefinitions.indexOf(key) !== -1;
|
||||
});
|
||||
res.status(200).send(filteredSwaggerObject);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue