AllOf in SwaggerCodeGen #11893
Unanswered
SonamNagdev
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a parent class and two subclasses. I don't have a discriminator property and I am using a CustomDeserializer to return the appropriate subtype. Now with swagger codegen as I need extends keyword for the subclasses I added "allOf" over my child classes but this results in duplicate properties in child classes. I don't want to manually remove these duplicate properties from swagger json file before code generation. Anything else I can do to achieve this to prevent properties duplication in child classes?
Beta Was this translation helpful? Give feedback.
All reactions