Skip to content

Incompatibility with NelmioApiDocBundle  #6

@kilobyte2007

Description

@kilobyte2007

Hello, I have an issue when trying to use this package while also using the NelmioApiDocBundle.
I have this configuration:

     * @SWG\Get(
     *     path="/account",
     *     summary="Gets account",
     *     @SWG\Response(
     *         response="200",
     *         description="Returned when successful",
     *         @SWG\Schema(@SWG\Items(ref=@Model(type="App\Entity\Common\Account", groups={"account"})))
     *     )
     * )

and it gives me the following error:

User Warning: [Syntax Error] Expected Doctrine\Common\Annotations\DocLexer::T_CLOSE_PARENTHESIS, got '(' in \App\Controller\Api\AccountController->getAccountAction() in src/Controller/A  
  pi/AccountController.php on line 42:49  

If I understand it correctly, the annotations loader is not understanding the @ Model (which is a NelmioApiDocBundle class) definition. Is there a way to fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions