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

Fix generating classes for oneOf block without discriminator #1671

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

altro3
Copy link
Collaborator

@altro3 altro3 commented Aug 3, 2024

Fixed #1667

@altro3 altro3 changed the title Fix generating classes for onOf block without discriminator Fix generating classes for oneOf block without discriminator Aug 3, 2024
@altro3 altro3 requested a review from graemerocher August 3, 2024 07:53
Copy link
Contributor

@scprek scprek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#1667 (comment) my test as well

@scprek
Copy link
Contributor

scprek commented Aug 5, 2024

Would this need to be done on all combination schema types? oneOf, anyOf, allOf, not

And as for 3.1:

I've seen at least 2 approaches to nullable used with refs between 3.0 and 3.1. The Swagger PHP library generates this for 3.1

        shopping_notes:
          oneOf:
            -
              $ref: '#/components/schemas/ShoppingNotesDTO'
            -
              type: 'null'
]

@altro3 altro3 merged commit 62cdfd1 into micronaut-projects:6.12.x Aug 5, 2024
6 checks passed
@altro3
Copy link
Collaborator Author

altro3 commented Aug 5, 2024

@scprek I can not answer this question. Need to test

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