Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for @Body('property') decorator #28

Closed
tma-isbx opened this issue Jan 7, 2018 · 1 comment
Closed

Support for @Body('property') decorator #28

tma-isbx opened this issue Jan 7, 2018 · 1 comment

Comments

@tma-isbx
Copy link
Contributor

tma-isbx commented Jan 7, 2018

Hi,

I've been playing around with the Swagger module. Looks great!

I did notice that it doesn't seem to support the @Body('property') decorator.

  @Post('login')
  public async login(
    @Body('email') email: string,
    @Body('password') password: string
  ): Promise<AccessToken> {
    return this.userService.login(email, password);
  }

Ends up generating a Swagger API without any parameters for login.

@lock
Copy link

lock bot commented Apr 25, 2020

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.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants