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
When a schema uses allOf with multiple schemas and one of those is defined with oneOf, the "oneOf" schema gets ignored from the outer schema.
Information to Reproduce
Run the generator using the sample openapi.yaml provided below, and notice there's no field of type Inner nor any way to set it's fields in the Test class.
It included the String field but not the Inner field.
Expected SDK
The class Test should have a field of type Inner, or another way to set the fields from that schema.
Additional Context
It might be the same issue as #2377 , but in his example I can't see any use of allOf with multiple schemas.
I'm not familiar with the IL produced, but I don't see mentions of Inner in the type_:Test section, making me think this issue is not specific to the generator I used (fernapi/fern-java-spring).
The text was updated successfully, but these errors were encountered:
Describe the Bug
When a schema uses
allOf
with multiple schemas and one of those is defined withoneOf
, the "oneOf
" schema gets ignored from the outer schema.Information to Reproduce
Run the generator using the sample openapi.yaml provided below, and notice there's no field of type
Inner
nor any way to set it's fields in theTest
class.CLI Version
0.31.7
Generator Version
fernapi/fern-java-spring
0.9.0
API Definition
OpenAPI specification to reproduce the bug.
Test
is the schema that usesallOf
andInner
the one that usesoneOf
.These would be examples of data for the schema
Test
:Actual SDK
The buggy SDK that is produced:
class types/Test.java
It included the
String
field but not theInner
field.Expected SDK
The class
Test
should have a field of typeInner
, or another way to set the fields from that schema.Additional Context
It might be the same issue as #2377 , but in his example I can't see any use of
allOf
with multiple schemas.I'm not familiar with the IL produced, but I don't see mentions of
Inner
in thetype_:Test
section, making me think this issue is not specific to the generator I used (fernapi/fern-java-spring).The text was updated successfully, but these errors were encountered: