Javascript – Unable to write Json schema to validate properties inside array
I am trying to write Json schema to validate json file with following content: { "number" : "1", "rootProperty": [ { "property1":"value1" }, { "property2":"value2" } ] } The schema should handle following scenarios: If property2 is present and property1…