I use the latest 2.2.0 validator.
Also tested with latest master on commit cae6fad80001510077a7f40e68477a31ec443add, 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
Hi,
EDIT: Maybe related to https://github.com/pboettch/json-schema-validator/issues/229
I use the latest 2.2.0 validator. Also tested with latest master on commit cae6fad80001510077a7f40e68477a31ec443add, 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