You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create an endpoint with an abstract class which is extended by two classes, whose instances could properly be returned at this endpoint. Enable UseOneOfForPolymorphism and set SelectDiscriminatorNameUsing and SelectDiscriminatorValueUsing.
EXPECTED RESULT:
As UseOneOfForPolymorphism replaces the usage of the abstract-class by a list of oneOf definition, containing the two classes extending it, the property discriminator should be on the oneOf definitions.
ACTUAL RESULT:
The property discriminator is instead defined on the component definition of the abstract class, where it's quite useless.
ADDITIONAL DETAILS
...
The text was updated successfully, but these errors were encountered:
VERSION:
6.5.0
STEPS TO REPRODUCE:
Create an endpoint with an abstract class which is extended by two classes, whose instances could properly be returned at this endpoint. Enable
UseOneOfForPolymorphism
and setSelectDiscriminatorNameUsing
andSelectDiscriminatorValueUsing
.EXPECTED RESULT:
As
UseOneOfForPolymorphism
replaces the usage of the abstract-class by a list ofoneOf
definition, containing the two classes extending it, the propertydiscriminator
should be on theoneOf
definitions.ACTUAL RESULT:
The property
discriminator
is instead defined on the component definition of the abstract class, where it's quite useless.ADDITIONAL DETAILS
...
The text was updated successfully, but these errors were encountered: