We are currently only handling oneOf polymorphism with explicitly defined type mappings. There are cases where we should be mapping by default based on schema name. There are also cases we should be handling where anyOf is used for polymorphism instead of oneOf.
Modifications
Find mappings automatically based on defaults if there are no explicit mappings defined. Also apply a converter to classes used as a base for anyOf polymorphism instead of only applying to oneOf.
Motivation
We are currently only handling oneOf polymorphism with explicitly defined type mappings. There are cases where we should be mapping by default based on schema name. There are also cases we should be handling where anyOf is used for polymorphism instead of oneOf.
Modifications
Find mappings automatically based on defaults if there are no explicit mappings defined. Also apply a converter to classes used as a base for anyOf polymorphism instead of only applying to oneOf.