Closed nueverest closed 10 years ago
the latest validictory gives a (slightly) more helpful error.
the issue is that when you give items a list of objects, it validates the objects in order (e.g. the 0th element should match the 0th schema, the 1st element the 1st schema...), if you make items just an object (drop the [] from around the schema definition) it'll attempt to validate all of them according to one schema
(I fixed this by dropping the [] locally on your test code and then there is still an error in your schema regarding visibility not being declared properly (should be {type: string}, not "string", so a few more tweaks to your jsonschema will be needed)
When you say that you dropped the [] in the test code, which [] are you referring to?
"items": [{
... }]
should be
"items": {
... }
Got it. Thanks for you rapid response. I also had to do this under the "photos": { "Items": {
section.
This is an awesome tool!
I'm getting an error:
Inside of my json data there does not exist a field named '_data'. Could you help dispel my confusion?
The length of the array of json objects could be quite large.
Lots more detail including: Stacktrace, Python Code, and JSON file. Here is my Error Message:
Here is my code including my schema. Keep in mind that the array from the file only contains 3 json objects.
Here are the contents for the file 'correct_meetup_group_data.json'