REST Resource: validator

Resource: ValidateError

A validation error identifies an issue in an XML or CSV metadata file that may cause an uploaded package that includes the file to fail. Note: You would upload the package via the Web, Aspera, or SFTP. The API call enables you to confirm that the metadata file is valid before uploading the package. See the YouTube Help Center for more information about uploading content, including metadata files, to YouTube.

JSON representation
{

  "severity"
: 
string
,

  "message"
: 
string
,

  "lineNumber"
: 
integer
,

  "columnNumber"
: 
integer
,

  "columnName"
: 
string
,

  "messageCode"
: 
integer

}
Fields
severity

string

The error severity.

message

string

The error message.

lineNumber

integer

The line number where the error occurred (1-based).

columnNumber

integer

The column number where the error occurred (1-based).

columnName

string

The column name where the error occurred.

messageCode

integer

The code for the error message (if one exists).

Methods

validate

Validate a metadata file.

validateAsync

Validate a metadata file asynchronously.

validateAsyncStatus

Get the asynchronous validation status.