Skip to content

[REQ] Clarifications regarding the new default python generator vs "python-legacy" #9993

@anichari

Description

@anichari

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

We actively use the python client codegen at our company and the recent change (probably #7965) is causing some anomalous behaviors. I tried to look in the docs to help understand the change/migration path from legacy to current python codegen but could not find much.

The behavior changes we have seen so far and would like to get a workaround/solution for.

  1. model package directory has changes from being "models" in the legacy version to "model" and api package renamed to "apis"
  2. The legacy client codegen's model test mustaches seem to have a make_instance that tries to create an Instance of the given model under test using example values. This code seems to be missing in the current version of the python Codegen Client.

Describe the solution you'd like

Ability to control the api and model package location so that we can continue to use what we have currently
Generate model tests that instantiate models using example values

Describe alternatives you've considered

falling back to python-legacy, although we dont know how long that will be supported

Additional context

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