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

generate spring with oneOf & serializableModel #741

Closed
Fyro-Ing opened this issue Aug 12, 2020 · 1 comment · Fixed by #743
Closed

generate spring with oneOf & serializableModel #741

Fyro-Ing opened this issue Aug 12, 2020 · 1 comment · Fixed by #743

Comments

@Fyro-Ing
Copy link
Contributor

Hello

I use code gen generators 1.016 for spring with serializableModel = true (false is ok)

Upgrading to last (or 1.0.17) failed with additional comma

openapi.yaml

        homePhone:
          oneOf:
            - $ref: '#/components/schemas/label'
            - $ref: '#/components/schemas/encrypted-label'
        mobilePhone:
          oneOf:
            - $ref: '#/components/schemas/label'
            - $ref: '#/components/schemas/encrypted-label'
public class EncryptedLabel  implements Serializable , OneOfpersonHomePhone, , OneOfpersonMobilePhone, , OneOfpersonProfessionalPhone  {

regression introduced with #590 ?

@calbach
Copy link
Contributor

calbach commented Aug 25, 2020

I think #743 should fix.

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.

2 participants