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

#responses 不写 Description 会报错 #23

Open
kerryChen95 opened this issue Apr 13, 2022 · 1 comment
Open

#responses 不写 Description 会报错 #23

kerryChen95 opened this issue Apr 13, 2022 · 1 comment

Comments

@kerryChen95
Copy link

@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 单词拼写错误。

@JsonMa
Copy link
Owner

JsonMa commented Apr 13, 2022

@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。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants