Schema validation added to the construction of the payload with verbose output.