When a type mismatch occurs for an item within an array field of a nested object, the error marker is currently placed at the beginning of the entire document.

Expected behavior:
The error marker should accurately indicate the position of the mismatched item within the array.