Discussion on @JsonTypeInfo
@JsonSubTypes
to implement different types of parameters
#906
linwumingshi
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Discussion from issues #375 , #614
Abstract Class
Children Class
Bird
Cat
Dog
Person (Class containing abstract class attributes)
Example
Current Behavior
Body-parameters:
Response-fields:
Body-parameters(with nested object):
Response-fields(with nested object):
💡 Solution One
The ApiParam class add field
oneOf
OpenApi Or Swagger document
oneOf, anyOf, allOf, not
MarkDown Or Html document
In the documentation for the abstract (parent) class API, include anchor links to the descriptions of its subclasses.
Body Parameters
Dog
Cat
Bird
Beta Was this translation helpful? Give feedback.
All reactions