nestjs / swagger

OpenAPI (Swagger) module for Nest framework (node.js) :earth_americas:
https://nestjs.com
MIT License
1.7k stars 476 forks source link

ApiUseTags decorator don't work on Method #35

Closed miramo closed 6 years ago

miramo commented 6 years ago

I'm submitting a...


[ ] Regression 
[X] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Minimal reproduction of the problem with instructions

I'm trying to tag just on one method of my controller but it seems not working.

(On the doc: ApiUseTags() | Method / Controller)

import { Get, Controller } from '@nestjs/common';
import { ApiUseTags } from '@nestjs/swagger';

@Controller()
export class AppController {
  @Get()
  @ApiUseTags('admin') // there is no effect in swagger
  ping(): string {
    return 'pong';
  }
}

But on controller this works perfect.

Environment


@nestjs/common@^4.5.9
@nestjs/core@^4.5.10
@nestjs/swagger@^1.1.4
reflect-metadata@^0.1.10

For Tooling issues:
- Node version: v8.9.4
- Platform:  Mac

Others:
- yarn
ericzon commented 6 years ago

I've just tested this and experienced the same.

kamilmysliwiec commented 6 years ago

Fixed due to #79 and published as a v1.3.0 already.

lock[bot] commented 4 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.