midway icon indicating copy to clipboard operation
midway copied to clipboard

swagger Responses schema 显示问题

Open doublekai opened this issue 3 years ago • 4 comments

image 这是返回定义的schema image image image

doublekai avatar Aug 05 '22 06:08 doublekai

TypeScript 范型继承拿不到类型信息的,ApiProperty 里面指定类型试试

kurten avatar Aug 06 '22 05:08 kurten

@kurten https://docs.nestjs.com/openapi/operations#advanced-generic-apiresponse

czy88840616 avatar Aug 06 '22 11:08 czy88840616

@kurten https://docs.nestjs.com/openapi/operations#advanced-generic-apiresponse

midway swagger 也支持这么搞的

kurten avatar Aug 06 '22 12:08 kurten

你给个文档示例吧。。他说没试出来。

czy88840616 avatar Aug 06 '22 12:08 czy88840616

官方swagger测试案例 '/test5/{aa} @ApiResponse({ type: OssMultipleUploadResponseDto }) swagger API都显示不了 望修复

Sinmere avatar Aug 18 '22 05:08 Sinmere

@Sinmere 有问题提到单独的issue中,提供更完整的内容。

czy88840616 avatar Aug 18 '22 06:08 czy88840616

已经处理。

czy88840616 avatar Sep 14 '22 12:09 czy88840616

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

github-actions[bot] avatar Aug 21 '23 09:08 github-actions[bot]