swagger-egg icon indicating copy to clipboard operation
swagger-egg copied to clipboard

#responses 不写 Description 会报错

Open kerryChen95 opened this issue 2 years ago • 1 comments

@description #responses {HttpStatus} {ResponseSchema} - {Description}

#responses 不写 Description 会报错

问题表现: 2022-03-29 16:26:30,117 ERROR 167275 [swagger-egg] Cannot read properties of null (reading 'pop') 抛出异常导致中断后续流程,解析不完整。

根本原因: 71行的正则写得太死,认为总是会存在 Description 。 image

另外, responnseParser 单词拼写错误。

kerryChen95 avatar Apr 13 '22 08:04 kerryChen95

@description #responses {HttpStatus} {ResponseSchema} - {Description}

#responses 不写 Description 会报错

问题表现: 2022-03-29 16:26:30,117 ERROR 167275 [swagger-egg] Cannot read properties of null (reading 'pop') 抛出异常导致中断后续流程,解析不完整。

根本原因: 71行的正则写得太死,认为总是会存在 Description 。 image

另外, responnseParser 单词拼写错误。

嗯,我修复下这个BUG。

JsonMa avatar Apr 13 '22 09:04 JsonMa