yii2-swagger
yii2-swagger copied to clipboard
Cant use header option
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 on line 24
/**
* @SWG\Get(path="/radar/get-all",
* tags={"Radar"},
* summary="Retrieves the collection of User Radar.",
* @SWG\Header(
* header="api_key",
* description="Api key header",
* required=false,
* @SWG\Schema(
* type="strings",
* )
* ),
*
* @SWG\Response(
* response = 200,
* description = "User collection response",
* @SWG\Schema(ref = "#/definitions/Radar")
* )
* )
*/