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

How to hide the return value model #175

Open
AZCodingAccount opened this issue Sep 12, 2024 · 1 comment
Open

How to hide the return value model #175

AZCodingAccount opened this issue Sep 12, 2024 · 1 comment

Comments

@AZCodingAccount
Copy link

AZCodingAccount commented Sep 12, 2024

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
Copy link
Owner

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

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

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