class HelloQuery {
/**
* username description
* @example shaun
*/
name: string
/**
* age description
* @example 35
*/
age?: number
}
@Controller()
export class AppController {
constructor(private readonly appService: AppService) {}
/**
* This is endpoint
* @description This is endpoint description
* @summary This is endpoint summary
*/
@Get()
// Must use following statement and work :(
// @ApiOperation({ description: 'Endpint description created by `ApiOperation`' })
getHello(@Query() query: HelloQuery): string {
return this.appService.getHello();
}
}
Is there an existing issue for this?
Current behavior
I try to use CLI Plugin to generate descriptions for properties and endpoints based on comments, only the property work
Core Code
Output File
Minimum reproduction code
https://github.com/shaunhurryup/nestjs-swagger-bug-report
Steps to reproduce
You can see
demo.swagger.json
in the root directoryExpected behavior
Package version
7.3.1
NestJS version
9.4.3
Node.js version
v16.20.2
In which operating systems have you tested?
Other
No response