Skip to content

Vendor Extensions not present in CodegenSecurity #7236

@cesaralvarado9

Description

@cesaralvarado9
Description

Hi,

CodegenSecurity does no have a property for vendorExtensions and therefore it is not populated by the values provided from SecuritySchemeDefinition.

But the spec dictates that those values should be available as displayed here:

https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#security-scheme-object

Swagger-codegen version

2.2.2, but confirmed that the issue is present in the 2.3.0 and 3.0.0 branches

Related issues/PRs

Not directly linked to this but similar to: #4022

Suggest a fix/enhancement
  • Add the vendorExtensions property to CodegenSecurity.
  • Populate the extensions at DefaultCodegen.fromSecurity()

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions