Duplicate values in the tags section of the generated Swagger JSON results when multiple controllers have been annotated with an @ApiPath annotation that has the same "name" property:
@controller("/api/b-operations")
export class ContollerB implements interfaces.Controller { ... }
This results in the generated swagger having two entries for "Operations" under tags:
tags:
Operations
Operations
The code that aggregates the tags from the annotations doesn't check if the tag already exists before adding it to the tags array (swagger.service.ts line 308), which causes the duplication.
Duplicate values in the tags section of the generated Swagger JSON results when multiple controllers have been annotated with an @ApiPath annotation that has the same "name" property:
@ApiPath({ path: "/a-operations", name: "Operations" })
@controller("/api/a-operations") export class ContollerA implements interfaces.Controller { ... }
@ApiPath({ path: "/b-operations", name: "Operations" })
@controller("/api/b-operations") export class ContollerB implements interfaces.Controller { ... } This results in the generated swagger having two entries for "Operations" under tags:
tags:
I have submitted PR#48 to patch this issue.