diff --git a/lib/utils/SchemaManager.js b/lib/utils/SchemaManager.js index 1c6d750a..e70109f6 100644 --- a/lib/utils/SchemaManager.js +++ b/lib/utils/SchemaManager.js @@ -92,7 +92,11 @@ export default class SchemaManager { let definedTags = this._schema.tags; // add tags into map to preserve order for (let tag of definedTags) { - tag2MethodMapping.set(tag.name, {description: tag.description}); + tag2MethodMapping.set(tag.name, { + 'description': tag.description, + 'x-secondaryTag': tag['x-secondaryTag'], + 'methods': [] + }); } let paths = this._schema.paths; @@ -114,7 +118,7 @@ export default class SchemaManager { tagDetails = {}; tag2MethodMapping.set(tag, tagDetails); } - if (!tagDetails.methods) tagDetails.methods = []; + if (tagDetails['x-secondaryTag']) continue; tagDetails.methods.push({pointer: methodPointer, summary: methodSummary}); } }