We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
你好大佬,目前想使用你得插件,遇到个问题,在@ApiResponse如何定义枚举型啊
The text was updated successfully, but these errors were encountered:
@ApiResponse 只是定义了返回结果的样例, 如果返回结果, 如 性别, 可选值为 0, 1, 那么 response 将把性别字段, 转换为 integer, 为转换为 枚举
@ApiResponse
性别
0
1
response
integer
枚举
rule 中枚举的定义, 可以参考 laravel/validata/rule, 格式为 in:1,0
rule
in:1,0
Sorry, something went wrong.
No branches or pull requests
你好大佬,目前想使用你得插件,遇到个问题,在@ApiResponse如何定义枚举型啊
The text was updated successfully, but these errors were encountered: