Forum Discussion

marrahi's avatar
marrahi
Frequent Visitor
4 years ago
Solved

Security annotation does not seem to prevent the controller action from being executed

Hello there, Just copied and pasted from documentation: nelmio_api_doc: documentation: info: title: My App version: 1.0.0 components: ...
  • RonRatovsky's avatar
    4 years ago

    Hi Antonio,

     

    Not exactly sure what is the piece of documentation you're sharing, as it's not a fully valid OpenAPI definition.

    I assume from the code that you're using PHP's Symfony (not familiar with it at all, personally).

     

    Swagger UI will simply follow the OpenAPI definition it is provided with.

    If there's an issue with the code not adhering to the security requirements, you'd need to look into the code/framework you're using. Since we don't have any PHP libraries of our own, I'm afraid we can't help you with finding the solution.