Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] [Java] Getter/Setter naming convention not followed in generated models #2085

Closed
karismann opened this issue Feb 7, 2019 · 0 comments

Comments

@karismann
Copy link
Contributor

Description

When generating a client library, the getters/setters for a field pId are getPId() and setPId().
As per naming conventions, this is wrong :

This should be getpId() and setpId()

openapi-generator version

4.0.0-SNAPSHOT

OpenAPI declaration file content or url
...
"xField" : {
   "type" : "string"
},
...
Command line used for generation
Steps to reproduce

Here also the automated getter and setter generated by IntelliJ for this property :

public class TestClass {

    String pId;

    public String getpId() {
        return pId;
    }

    public void setpId(String pId) {
        this.pId = pId;
    }

}
Related issues/PRs

swagger-api/swagger-codegen#8282

Suggest a fix

I will send a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant