You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
Nested composed schemas are missing generated examples for child schema types, only the parent schema examples get generated while child examples are ignored.
Bug Report Checklist
Description
Nested composed schemas are missing generated examples for child schema types, only the parent schema examples get generated while child examples are ignored.
openapi-generator version
v7.5.0 and master 93f4323
OpenAPI declaration file content or url
While generating examples for
ExampleAllOfParentSchema
schema:It is expected to have the following generated example:
However,
ExampleGenerator
provides the following:Generation Details
N/A
Steps to reproduce
Added new example to
example_generator_test.yaml
:Included unit test to
ExampleGeneratorTest.java
to test scenario:Related issues/PRs
Simular to this:
#17497
Seems like an edge case from the added implementation
Suggest a fix
Didn't go into detail yet, but most likely
ExampleGenerator:373
needs to consider the resolved schema to haveallOf/anyOf/oneOf
:If I have sometime during the week I will try to solve it myself.
The text was updated successfully, but these errors were encountered: