Hello All,
I have a Holiday booking app.
It is used to work fine and now it stopped working.
Error: Validation Failed: The schema validation failed.
Please see the attached screenshots and code.
Screenshot-1

Screenshot-2

CODE:
====================================
{
"type": "array",
"items": {
"type": "object",
"properties": {
"@@odata.etag": {
"type": "string"
},
"ItemInternalId": {
"type": "string"
},
"ID": {
"type": "integer"
},
"Title": {
"type": "string"
},
"Author": {
"type": "object",
"properties": {
"@@odata.type": {
"type": "string"
},
"Claims": {
"type": "string"
},
"DisplayName": {
"type": "string"
},
"Email": {
"type": "string"
},
"Picture": {
"type": "string"
},
"Department": {},
"JobTitle": {
"type": [
"string",
"null"
]
}
}
},
"Author#Claims": {
"type": "string"
},
"Week": {
"type": "integer"
},
"Date": {
"type": "string"
},
"Timesheet_x0020_Type": {
"type": "object",
"properties": {
"@@odata.type": {
"type": "string"
},
"Id": {
"type": "integer"
},
"Value": {
"type": "string"
}
}
},
"Timesheet_x0020_Type#Id": {
"type": "integer"
},
"Hourly_x0020_Rate": {
"type": "string"
},
"Hours": {
"type": "number"
},
"ModeofTransport": {
"type": "object",
"properties": {
"@@odata.type": {
"type": "string"
},
"Id": {
"type": "integer"
},
"Value": {
"type": "string"
}
}
},
"ModeofTransport#Id": {
"type": "integer"
},
"Mileage": {
"type": "number"
},
"Fare": {
"type": "number"
},
"Subsistence": {
"type": "number"
},
"Parking": {
"type": "number"
},
"OtherCost": {
"type": "number"
},
"OtherDescription": {
"type": "string"
},
"Modified": {
"type": "string"
},
"Created": {
"type": "string"
},
"Editor": {
"type": "object",
"properties": {
"@@odata.type": {
"type": "string"
},
"Claims": {
"type": "string"
},
"DisplayName": {
"type": "string"
},
"Email": {
"type": "string"
},
"Picture": {
"type": "string"
},
"Department": {},
"JobTitle": {
"type": [
"string",
"null"
]
}
}
},
"Editor#Claims": {
"type": "string"
},
"{Identifier}": {
"type": "string"
},
"{IsFolder}": {
"type": "boolean"
},
"{Thumbnail}": {
"type": "object",
"properties": {
"Large": {},
"Medium": {},
"Small": {}
}
},
"{Link}": {
"type": "string"
},
"{Name}": {
"type": "string"
},
"{FilenameWithExtension}": {
"type": "string"
},
"{Path}": {
"type": "string"
},
"{FullPath}": {
"type": "string"
},
"{HasAttachments}": {
"type": "boolean"
},
"{VersionNumber}": {
"type": "string"
},
"Place_x0020_Visited": {
"type": "string"
},
"Contract": {
"type": "object",
"properties": {
"@@odata.type": {
"type": "string"
},
"Id": {
"type": "integer"
},
"Value": {
"type": "string"
}
}
},
"Contract#Id": {
"type": "integer"
}
},
"required": [
"@@odata.etag",
"ItemInternalId",
"ID",
"Title",
"Author",
"Author#Claims",
"Week",
"Date",
"Timesheet_x0020_Type",
"Timesheet_x0020_Type#Id",
"Hourly_x0020_Rate",
"Hours",
"ModeofTransport",
"ModeofTransport#Id",
"Mileage",
"OtherCost",
"OtherDescription",
"Modified",
"Created",
"Editor",
"Editor#Claims",
"{Identifier}",
"{IsFolder}",
"{Thumbnail}",
"{Link}",
"{Name}",
"{FilenameWithExtension}",
"{Path}",
"{FullPath}",
"{HasAttachments}",
"{VersionNumber}"
]
}
}