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
CHECK_MODE_APPLY_DEFAULTS uses defaults from first "oneOf" option rather than the one that validates. The same has been observed with "anyOf", but the test uses "oneOf"
Array
(
[0] => Array
(
[property] => foo.name
[pointer] => /foo/name
[message] => Does not have a value in the enumeration ["zip"]
[constraint] => enum
[context] => 1
[enum] => Array
(
[0] => zip
)
)
[1] => Array
(
[property] => foo.meta
[pointer] => /foo/meta
[message] => Does not have a value in the enumeration ["zip"]
[constraint] => enum
[context] => 1
[enum] => Array
(
[0] => zip
)
)
[2] => Array
(
[property] => foo.name
[pointer] => /foo/name
[message] => Does not have a value in the enumeration ["baz"]
[constraint] => enum
[context] => 1
[enum] => Array
(
[0] => baz
)
)
[3] => Array
(
[property] => foo.meta
[pointer] => /foo/meta
[message] => Does not have a value in the enumeration ["bar"]
[constraint] => enum
[context] => 1
[enum] => Array
(
[0] => bar
)
)
[4] => Array
(
[property] =>
[pointer] =>
[message] => Failed to match exactly one schema
[constraint] => oneOf
[context] => 1
)
)
The text was updated successfully, but these errors were encountered:
Background
CHECK_MODE_APPLY_DEFAULTS
uses defaults from first "oneOf" option rather than the one that validates. The same has been observed with "anyOf", but the test uses "oneOf"Test
expected output
actual output
getErrors() output
yields
The text was updated successfully, but these errors were encountered: