Skip to content

[REQ] Support modelPropertyNaming=original for Python #5214

@jonashaag

Description

@jonashaag

Add support for modelPropertyNaming (or similar) to Python codegen.

If you have definitions like this one:

      parameters:
        - name: FooID
          in: query

Then the resulting code uses underscore notation:

    def myendpoint(self, foo_id, ..., **kwargs):  # noqa: E501

It should also be supported to leave the identifiers as-is, so that the code is:

    def myendpoint(self, FooID, ..., **kwargs):  # noqa: E501

Related tickets:

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