-
```
/**
* @ApiServer(name="admin")
* @ApiController(prefix="admin/passport", tag="授权登录", server="admin")
* @Middleware(CorsMiddleware::class)
*/
```
测试,路由是生效的,但没有生成该控制器的API文档
看了一下代码,应该是只…
-
根据hyper文档写得自定义验证规则添加,识别不了
BadMethodCallException:Method Hyperf\Validation\Validator::validateFoo does not exist.(236) in /www/wwwroot/hyperf/vendor/hyperf/validation/src/Validator.php
-
[自定义验证规则文档](https://hyperf.wiki/2.0/#/zh-cn/validation?id=%e8%87%aa%e5%ae%9a%e4%b9%89%e9%aa%8c%e8%af%81%e8%a7%84%e5%88%99)
> 通过自定义的方式, 添加了验证规则, 在 Request 中是有效的, 但是在使用了 APIDOG 的时候, 会提示规则不存在
-
![image](https://user-images.githubusercontent.com/15214079/100435767-5c545800-30d9-11eb-8875-626c2e4c830a.png)
-
@ApiController(prefix="/admin" 不起作用
-
谢谢
-
```
root@cd6db4504bc0:/var/www/skeleton# php bin/hyperf.php swagger:gen
[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\Config\Listener\RegisterPropertyHandlerListener listene…
-
https://github.com/daodao97/apidog/blob/32be225c5c3d253cf953a774b3ca59c652d01605/src/Annotation/Param.php#L35-L40
此处的 `required` 判定是否加上 `|` 符号比较好?因为像 `required_if` 之类的规则,会在 **swagger-ui** 前端就被拦截提交,…
-
formdata时就不是。
https://github.com/daodao97/apidog/blob/aaeb046d9a293265b616fafb244bcafa752c3c13/src/Swagger/SwaggerJson.php#L73
-
如题:请问这个有使用的文档么?谢谢