yii2-swagger icon indicating copy to clipboard operation
yii2-swagger copied to clipboard

Cant use header option

Open tiagocomti opened this issue 3 years ago • 0 comments

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")
     *     )
     * )
     */

tiagocomti avatar Sep 22 '21 20:09 tiagocomti