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
Thanks for raising issue. I will fix your issue, but pay attention, that actually, customer is not Customer. If 'allOf' has not only ref, but additional properties - we should create special class, contains all fields of Customer + all properties, mentioned in it.
So generator will generate Customer when there are no properties inside of allOf, and dynamic in cases, when you add it, for example, like this:
Describe the bug
Object is not typed correctly when using allOf.
To Reproduce
Let's say I have the following swagger.
This produces the following code.
Note that the
customer
property is not typed.Expected behavior
I expect the
customer
property to be typed, as shown below.Swagger specification link
Link to swagger/OpenApi documentation
Library version used:
2.3.10
The text was updated successfully, but these errors were encountered: