Closed dnj12345 closed 4 years ago
Try passing your data through jsonschema.validate
before calling merge
.
@avian2 Thank you.
After running it through jsconschema.validate
, it looks like I was missing merge strategy for boolean
in my schema. After adding this { "type": "boolean" }
to schema, it worked. Thanks again.
Hi, Not sure if this is an issue or if there is a lack of understanding on my part. I am trying to merge two complicated json objects. The merge fails with the error:
No element of 'oneOf' validates both base and head: #
I am using a slightly modified schema mentioned in in issue #28 and https://www.tablix.org/~avian/blog/articles/talks/tomaz_solc_jsonmerge.pdf. That is, merge all arrays with append strategy.
The merge works great for some JSON documents. However, it failing for some other documents. I've pasted a sample python script below that causes the problem. Could someone let me know if there is an error in my coding or if this is not possible with JSON merge?
Thanks in advance for any feedback.
regards,