Skip to content

python generated models, flat list of files for V2 and V3 instead of just 2 files. #625

@mayankiitg

Description

@mayankiitg

Hi I am using AutoRest to generate python client from swagger 2.0 and tried both latest and beta version to generate clients.

autorest --input-file=swagger.json --python --output-folder=Python --namespace=TestNamespace --package-name=MyPackage

autorest-beta --input-file=swagger.json --python --output-folder=Python --namespace=TestNamespace --package-name=MyPackage

I am observing a lot of model files getting generated inside Models folder for both v2 and v3. From the change-log, I noticed that now, we are supposed to get just 2 files one for v2 and one for v3. Am I missing something to get those 2 nice files? Do I need to pass some additional parameter?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions