Skip to content

Why is there no accessor to the members of the generators and the constructor define properties ? #779

@rastaman

Description

@rastaman

Hi all,
I'm in the process of learning swagger-codegen and i'm surprised that there is no accessors on the members of the generators classes and also that some properties are defined in the constructors.

In order to configure the generators from the swagger-codegen-maven-plugin, i had to add the accessors ( getter/setter) and move the construction of the properties (additionalProperties, supportingFiles) in a init method which is called from the constructor and the setters.

I can submit this patch in a pull request but before i do so, i would like to know if i have missed something ? it is strange that the accessors are missing, perhaps there is a good reason ?

I also have patched the maven plugin to use reflection to configure the generators, and all the code is in the forks of the repos on my account (swagger-codegen and swagger-codegen-maven-plugin).

Thanks in advance for any answer,
Best regards

PS: Take a look at this commit if i'm not clear enough : rastaman@9ab303f

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions