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

jaxrs-resteasy processor generates invalid source code for enums #832

Open
rkrzewski opened this issue Dec 30, 2020 · 0 comments · May be fixed by #833
Open

jaxrs-resteasy processor generates invalid source code for enums #832

rkrzewski opened this issue Dec 30, 2020 · 0 comments · May be fixed by #833

Comments

@rkrzewski
Copy link

Example of invalid code:

public enum CustomerStatus {
    {values=[N, P, A], enumVars=[{name=N, value="N"}, {name=P, value="P"}, {name=A, value="A"}]}
}

Apparently JavaJaxRS/resteasy/enumOuterClass.mustache template was not updated to accommodate to changes in enum representation introduced in 1058728

I've verfied that copying the contents of JavaJaxRS/resteasy/eap/enumOuterClass.mustache to JavaJaxRS/resteasy/enumOuterClass.mustache fixes the problem. I'll post a PR shortly.

rkrzewski added a commit to rkrzewski/swagger-codegen-generators that referenced this issue Dec 30, 2020
@rkrzewski rkrzewski linked a pull request Dec 30, 2020 that will close this issue
rkrzewski added a commit to rkrzewski/swagger-codegen-generators that referenced this issue Mar 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant