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
This will always evaluate to TRUE, disregarding the mismatch between the values in the array in test_json/the_object/my_nested_object and the enum specified in the objects reference. It seems like nested objects disregard the specified constraints of referenced schema?
The text was updated successfully, but these errors were encountered:
Several things are going on here that are not great:
We need to move towards deprecating imjv, or warning if people use it. The schema validator is not as powerful and not all features that we've added recently are supported on it. We use ajv for everything, and you will need that for more recent json schema versions
We should detect use of references with imjv and warn that they are being ignored.
We should also allow ./path to be treated as path; I've not seen that before
Pull requests on any of these welcome, otherwise I'll look at these issues next time we work on the package
Thank you for the tip @richfitz!
What are imjv specific references and how do they differ from ajv? I might be able to PR that.
Changing the paths and using ajv seems to be validating as expected now.
Directory structure is as follows:
main.json:
objects.json:
test.json:
This will always evaluate to
TRUE
, disregarding the mismatch between the values in the array intest_json/the_object/my_nested_object
and theenum
specified in theobjects
reference. It seems like nested objects disregard the specified constraints of referenced schema?The text was updated successfully, but these errors were encountered: