Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #875
Closed
Open
Issue created Aug 22, 2018 by Administrator@rootContributor

[Symfony] [spec 3.0] No support for API keys in Cookies

Created by: Addvilz

Description

Symfony code generator lacks support for API keys in cookies as per 3.0+ spec.

In addition to that, generated code does not fail gracefully either, instead just skipping the definition of the variable. That leads to runtime errors if left unchecked.

https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/php-symfony/api_controller.mustache#L79

openapi-generator version

Affects all (issue is present in master and 4x)

Suggest a fix/enhancement

Fix should be trivial to implement in the template directly, but I have yet to confirm that in reality.

I will open a PR on this issue as soon as I get a chance (tomorrow or in next couple of days).

Assignee
Assign to
Time tracking