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 use the latest 2.2.0 validator.
Also tested with latest master on commit cae6fad, same behavior
I think I have found a bug on the generated patch which generate not needed field when using oneOf in an array with default value:
I have an array of messages with only two different item type:
One is only with a string,
The other is an object containing a boolean field
To reproduce the bug, I have generated a small example to explain this:
I expected that the message will not be patched at all since it validate the first item schema fully, however here my message got the event field added which is not needed
Is this a bug?
Regards
The text was updated successfully, but these errors were encountered:
Hi,
EDIT:
Maybe related to #229
I use the latest 2.2.0 validator.
Also tested with latest master on commit cae6fad, same behavior
I think I have found a bug on the generated patch which generate not needed field when using oneOf in an array with default value:
I have an array of messages with only two different item type:
To reproduce the bug, I have generated a small example to explain this:
The problem is when I add the default for the 2nd object i.e:
It output the following :
I expected that the message will not be patched at all since it validate the first item schema fully, however here my message got the
event
field added which is not neededIs this a bug?
Regards
The text was updated successfully, but these errors were encountered: