'discriminator in OpenAPI

I am new to openAPI and trying to understand the discriminator property that can be used along with anyOf and oneOf. how can this property help in implementing the client code?

Please share your wisdom.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source