Invalid JSON Schema Error
Try removing the :
, "required": [ "record" ]
So:
{ "$schema": "http://json-schema.org/draft-04/schema#", "id": "http://example.com", "type": "object", "properties": { "record": { "id": "http://example.com/record", "type": "array", "items": { "id": "http://example.com/record/0", "type": "object", "properties": { "Account": { "id": "http://example.com/record/0/Account", "type": "string" }, "DeptID": { "id": "http://example.com/record/0/DeptID", "type": "string" }, "ProjectID": { "id": "http://example.com/record/0/ProjectID", "type": "string" }, "ProjectDescription": { "id": "http://example.com/record/0/ProjectDescription", "type": "string" }, "Amount": { "id": "http://example.com/record/0/Amount", "type": "number" }, "CheckNo": { "id": "http://example.com/record/0/CheckNo", "type": "integer" }, "Reference": { "id": "http://example.com/record/0/Reference", "type": "string" }, "BudgetRef": { "id": "http://example.com/record/0/BudgetRef", "type": "string" }, "Description": { "id": "http://example.com/record/0/Description", "type": "string" }, "Oprid": { "id": "http://example.com/record/0/Oprid", "type": "string" }, "Date": { "id": "http://example.com/record/0/Date", "type": "string" } }, "required": [ "Account", "DeptID", "ProjectID", "ProjectDescription", "Amount", "CheckNo", "Reference", "BudgetRef", "Description", "Oprid", "Date" ] }, "required": [ "items" ] } }}
You cannot have JSON with required field condition for array of array, instead required can be used only for array of records
So, Please remove , "required": [ "record" ]
at the end
I am not sure about this solution, I got the same issue, I changed the id of the properties as below, it worked for me: "ZIP": { "id": "/properties/ZIP",
"type": "string" }