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
I am writing api which define response, and one of the property in the response is "filters" property (array type), which has reference to property which use anyOf functionality with discriminator with defined mapping.
Unfortunately my response with array values it is not validate properly. During validation it's validate array using schema choosen by discriminator, but choose constantly first schema.
My expected behaviour is: If i define discriminator property with mapping, it should use schema defined by discriminator.
I am writing api which define response, and one of the property in the response is "filters" property (array type), which has reference to property which use anyOf functionality with discriminator with defined mapping.
Unfortunately my response with array values it is not validate properly. During validation it's validate array using schema choosen by discriminator, but choose constantly first schema.
My expected behaviour is: If i define discriminator property with mapping, it should use schema defined by discriminator.
Example:
when SearchFilter:
and
QuerySearchFilter
andPriceSearchFilter
are:for example my response contains response:
Is anybody could help me, did I deine something in wrong way or is a bug in the validator. I think there is an issue in the validator.
The text was updated successfully, but these errors were encountered: