hyperf-apihelper icon indicating copy to clipboard operation
hyperf-apihelper copied to clipboard

hyperf api swagger helper -[api接口自动验证和swagger接口文档生成] 组件

Results 5 hyperf-apihelper issues
Sort by recently updated
recently updated
newest added

[CRITICAL] Call to undefined method Hyperf\Translation\TranslatorFactory::trans()[346] in /data/vendor/kakuilan/hyperf-apihelper/src/Validation/Validator.php [CRITICAL] #0 [internal function]: Hyperf\Apihelper\Validation\Validator->rule_enum() #1 /data/vendor/kakuilan/hyperf-apihelper/src/Validation/Validator.php(172): call_user_func_array() #2 /data/runtime/container/proxy/App_Middleware_ApiValidationMiddleware.proxy.php(217): Hyperf\Apihelper\Validation\Validator->validate()

![image](https://user-images.githubusercontent.com/23369658/114847251-15f56080-9e10-11eb-8e73-87474cb2eca7.png) ![image](https://user-images.githubusercontent.com/23369658/114847282-1ee63200-9e10-11eb-804d-f9131ab34f09.png) ![image](https://user-images.githubusercontent.com/23369658/114847333-2efe1180-9e10-11eb-90ff-a05c03c8bbf6.png) ![image](https://user-images.githubusercontent.com/23369658/114847376-3b826a00-9e10-11eb-9922-931fc7703245.png)

[ERROR] Return value of Hyperf\HttpServer\Server::getServerName() must be of the type string, null returned[137] [ERROR] #0 ***/backend-svc/runtime/container/proxy/Hyperf_Apihelper_Middleware_ApiValidationMiddleware.proxy.php(79): Hyperf\HttpServer\Server->getServerName()

文档中只有 FROM, 或直接一个body对象的例子,且那个testBody例子也没说怎么取值调用 一般前后端分离项目都用body,json交互, 目前貌似body定义接口参数不太友好, 并且也无法生成友好的swagger接口