yii2-swagger
yii2-swagger copied to clipboard
Swagger Documentation Generator for Yii2 Framework
This XML file does not appear to have any style information associated with it. The document tree is shown below. Swagger UI html { box-sizing: border-box; overflow: -moz-scrollbars-vertical; overflow-y: scroll;...
Unexpected field "required" for @SWG\Header(), expecting "header", "description", "type", "format", "items", "collectionFormat", "default", "maximum", "exclusiveMaximum", "minimum", "exclusiveMinimum", "maxLength", "minLength", "pattern", "maxItems", "minItems", "uniqueItems", "enum", "multipleOf", "x" in /path/to/my/project/RadarController->actionGetAll() in /path/to/my/project/RadarController.php...
`Errors Fetch errorInternal Server Error /inspecao/aplicacao/web/swagger/json-schema` 2021-05-17 23:31:55 [::1][4][to85286h8jkkjf1oh09v5uqlln][error][yii\base\ErrorException:1024] yii\base\ErrorException: Required @SWG\Info() not found in D:\www\inspecao\aplicacao\vendor\zircote\swagger-php\src\Logger.php:38 Stack trace: #0 D:\www\inspecao\aplicacao\vendor\zircote\swagger-php\src\Logger.php(38): yii\web\ErrorHandler->handleError() #1 D:\www\inspecao\aplicacao\vendor\zircote\swagger-php\src\Logger.php(38): ::trigger_error() #2 D:\www\inspecao\aplicacao\vendor\zircote\swagger-php\src\Logger.php(68): Swagger\Logger->Swagger\{closure:D:\www\inspecao\aplicacao\vendor\zircote\swagger-php\src\Logger.php:34-39}() #3 D:\www\inspecao\aplicacao\vendor\zircote\swagger-php\src\Logger.php(68): ::call_user_func:{D:\www\inspecao\aplicacao\vendor\zircote\swagger-php\src\Logger.php:68}()...
swagger was working fine on api of my local project. But when I deployed the project to live, every controller is working well except swagger. The error I got is...
Component yii2-swagger requre php 7.1 or newer, but this component not use special 7.1 features, and zircote/swagger-php needs php >= 5.4.
Hi, I am trying to use the vendor in my api restful, but I am implementing oauth2 authentication and I can't find the way to set this in the swagger,...
按照你说明配置的,启动报错,指导下.... An Error occurred while handling another error: yii\base\InvalidConfigException: Missing required parameter "id" when instantiating "light\swagger\SwaggerAction". in C:\_development\code\advanced\vendor\yiisoft\yii2\di\Container.php:488 Stack trace: #0 C:\_development\code\advanced\vendor\yiisoft\yii2\di\Container.php(387): yii\di\Container->resolveDependencies(Array, Object(ReflectionClass)) #1 C:\_development\code\advanced\vendor\yiisoft\yii2\di\Container.php(159): yii\di\Container->build('light\\swagger\\S...', Array, Array) #2...
The provided definition does not specify a valid version field. Please indicate a valid Swagger or OpenAPI version field. Supported version fields are swagger: "2.0" and those that match openapi:...