luolingchun / flask-openapi3

Generate REST API and OpenAPI documentation for your Flask project.
https://luolingchun.github.io/flask-openapi3/
MIT License
203 stars 33 forks source link

How to hide the return value model #175

Open AZCodingAccount opened 2 months ago

AZCodingAccount commented 2 months ago

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

luolingchun commented 2 months ago

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

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