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: ExampleGenerator correctly generates allOf composed schemas #17499

Merged

Commits on Jan 5, 2024

  1. fix: ExampleGenerator correctly generates allOf composed schemas

    Changes the previous behavior of generating `null` examples for allOf composed schemas.
    
    Fixes OpenAPITools#17497
    acouvreur committed Jan 5, 2024
    Configuration menu
    Copy the full SHA
    ffe092f View commit details
    Browse the repository at this point in the history

Commits on Jan 6, 2024

  1. fix: ExampleGenerator correctly generates anyOf and oneOf composed sc…

    …hemas
    
    Changes the previous behavior of generating `null` examples for anyOf and oneOf composed schemas.
    
    To generate a oneOf/anyOf example, we generate the example using the first valid schema available. In case of a $ref, we use the first valid reference.
    
    Fixes OpenAPITools#17497
    acouvreur committed Jan 6, 2024
    Configuration menu
    Copy the full SHA
    31bf3c6 View commit details
    Browse the repository at this point in the history