Within jsonSchema, I am struggling figuring out the nested behavior of how unevaluatedProperties works with child conditional fields. I have an example schema (https://www.jsonschemavalidator.net/s/nwBr5INn) that I am attempting to get the validator to come back and say that these three fields should not be present:
level1_ShouldNotBeHere
field5_ShouldNotBeHere
array1_ShouldNotBeHere
Ultimately, I am attempting to use a validator (AJV) to return back a list of errors related to unevaluatedProperties, and remove those fields from the resulting json.
In this example (https://www.jsonschemavalidator.net/s/eEwqRkTg), I can get the first two fields to come back, however I cannot figure out where to put the unevaluatedProperties to have the below field come back as an error: array1_ShouldNotBeHere
Scott is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.