swagger-egg
swagger-egg copied to clipboard
解析不出 controller action
问题表现
解析不出 controller action
复现数据示例
// app/router.ts
router
.get(
'path/to/foo',
middlewareBar,
// 注意末尾有逗号
app.controller.foo.action,
)
根本原因
34, 35行解析得太理想化了,建议在单元测试中补充边界case。
问题表现
解析不出 controller action
复现数据示例
// app/router.ts router .get( 'path/to/foo', middlewareBar, // 注意末尾有逗号 app.controller.foo.action, )
根本原因
34, 35行解析得太理想化了,建议在单元测试中补充边界case。
👍🏻,欢迎提PR哦!