Skip to content

[REQ] [PHP] support "original" mode for "variableNamingConvention" #21334

@aghajani

Description

@aghajani

Is your feature request related to a problem? Please describe.

The modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractPhpCodegen.java file used by many php generators is supporting these values for "variableNamingConvention":

  • camelCase
  • PascalCase
  • DEFAULT (any other value or empty) => snake_case

There are many scenarios which we want to use whatever defined in OpenAPI spec AS IS and without modification.

Describe the solution you'd like

I propose to add "original" to supported values and if set, we won't alter the names.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions