Open leonidumanskiy opened 9 months ago
Hi @leonidumanskiy sorry but openapi v3 is not fully supported in our current implementation of the generator, namely the anyOf
and oneOf
part.
Therefore it is possible that the generator could have funny behavior when it gets the input of those.
The swagger part of the generator is in maintenance model right now therefore we do not have a plan to support that.
If possible, your case looks like a discriminator case, please refine your swagger to define it in a way of regular discriminator and I believe the generator could support now.
Example schema:
Although there are no duplicate schema names, it will still result in the following error:
The issue seems to be coming from combining schema name (
Pet
) and property name (owner
) resulting in auto-generated property schemaPetOwner
that collides with the existing schema.The error is quite ambiguous and does not indicate where the issue is coming from.