unexpected instance type? #327
Unanswered
Mercury-Fred
asked this question in
Q&A
Replies: 2 comments 2 replies
-
It seems that you are not parsing your JSON-string correctly. Have you verified that your JSON-instance is correctly parsed? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Here is an example schema that doesn't seem to catch additional properties (but does in the website identified above:
******** Test Json file below ********* |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I am attempting to use this package for json schema validation. I've tried my schema and json file on a web page for testing such things, (e.g. https://www.jsonschemavalidator.net/) and it all works fine. However, when I attempt to use this package, I get "unexpected instance type". My json file looks like the following:
{
"property1" :
[
{
"item1" : -1
}
]
}
The error message includes the entire json file as the "instance" and the instance value being generated internally by the package is the number 3. Note that I also get the "unexpected instance type" with an empty json file... e.g. "{}" - Then I get ERROR: '' - '"{\n}': unexpected instance type
Any suggestions? Thanks
Beta Was this translation helpful? Give feedback.
All reactions