flask-openapi3 icon indicating copy to clipboard operation
flask-openapi3 copied to clipboard

How to hide the return value model

Open AZCodingAccount opened this issue 1 year ago • 1 comments

hello,i have a question. I don't want to display the default error model,Or can I display all the responses from our project? How should I configure that? I only can see one response error. doc: https://luolingchun.github.io/flask-openapi3/v4.x/Usage/Specification/#validation-error As shown below: image

AZCodingAccount avatar Sep 12 '24 12:09 AZCodingAccount

当参数验证失败时会抛出一个422错误(ValidationError),这个错误没有响应说明会很奇怪。

运行这个示例(response_demo),会看到多个响应的效果。

luolingchun avatar Sep 15 '24 06:09 luolingchun

This issue has been automatically closed because we haven't heard back for more than 365 days, please reopen this issue if necessary.

github-actions[bot] avatar Dec 01 '25 01:12 github-actions[bot]