Skip to content

#responses 不写 Description 会报错 #23

@kerryChen95

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions