Skip to content

Commit

Permalink
Merge tags in resulting spec (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pchelolo authored and Marko Obrovac committed Aug 29, 2016
1 parent 354578d commit a601f8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/router.js
Expand Up @@ -354,6 +354,7 @@ Router.prototype._createNewApiRoot = function(node, spec, scope) {
specRoot.definitions = spec.definitions || {};
specRoot.securityDefinitions = spec.securityDefinitions || {};
specRoot['x-default-params'] = spec['x-default-params'] || {};
specRoot.tags = spec.tags || [];

// Reset paths. These are going to be built up during path setup.
specRoot.paths = {};
Expand Down Expand Up @@ -533,6 +534,7 @@ Router.prototype._handleSwaggerSpec = function(node, spec, scope, parentSegment)
// added to the higher level spec?
Object.assign(scope.specRoot.definitions, spec.definitions);
Object.assign(scope.specRoot.securityDefinitions, spec.securityDefinitions);
scope.specRoot.tags = scope.specRoot.tags.concat(spec.tags || []);

this._loadRouteFilters(node, spec, scope);

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "hyperswitch",
"version": "0.6.4",
"version": "0.6.5",
"description": "REST API creation framework",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit a601f8f

Please sign in to comment.