-
Notifications
You must be signed in to change notification settings - Fork 29
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
请问可以对 ApiResponse 下schema 里面的值进行描述的么? #11
Comments
目前不可以, 采用Modle方式应该可以达到你想要的效果, 有空了研究下 |
目前可能只能在class层多定义点@ApiDefinition,然后schema $ref引用,能否在method层支持@ApiDefinition这样就可以了 |
@ApiResponse(code="0", description="创建成功", schema={"id|ID": 1}) |
hyperf 3版本
|
后续我得空升级一下 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/**
* @postapi(path="login", description="添加一个用户")
* @Header(key="token|接口访问凭证", rule="required")
* @formdata(key="username|用户名或者手机号", rule="required")
* @formdata(key="password|密码", rule="required")
* @ApiResponse(code="-1", description="参数错误")
* @ApiResponse(code="0", description="成功", schema={"id":1})
*/
请问可以对 ApiResponse 下schema 里面的值进行描述的么?谢谢
The text was updated successfully, but these errors were encountered: