Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant use header option #16

Open
tiagocomti opened this issue Sep 22, 2021 · 0 comments
Open

Cant use header option #16

tiagocomti opened this issue Sep 22, 2021 · 0 comments

Comments

@tiagocomti
Copy link

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")
     *     )
     * )
     */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant