content library item updatesession file: validation result

The validation_result structure defines the result of validating the files in the session.

Representations:

{
    "has_errors"true,
    "invalid_files"[
        {
            "error_message"{
                "args"[
                    "string",
                    "string"
                ],
                "default_message""string",
                "id""string"
            },
            "name""string"
        },
        {
            "error_message"{
                "args"[
                    "string",
                    "string"
                ],
                "default_message""string",
                "id""string"
            },
            "name""string"
        }
    ],
    "missing_files"[
        "string",
        "string"
    ]
}
<?xml version="1.0" ?>
<ns0:ValidationResult xmlns:ns0="http://vmware.com/content/library/item/updatesession/file" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <has_errors>true</has_errors>
  <missing_files-array>
    <array-item>string</array-item>
    <array-item>string</array-item>
  </missing_files-array>
  <invalid_files-array>
    <array-item>
      <error_message>
        <default_message>string</default_message>
        <id>string</id>
        <args-array>
          <array-item>string</array-item>
          <array-item>string</array-item>
        </args-array>
      </error_message>
      <name>string</name>
    </array-item>
    <array-item>
      <error_message>
        <default_message>string</default_message>
        <id>string</id>
        <args-array>
          <array-item>string</array-item>
          <array-item>string</array-item>
        </args-array>
      </error_message>
      <name>string</name>
    </array-item>
  </invalid_files-array>
</ns0:ValidationResult>

Attributes:

Name Type Description
Required
has_errors boolean Whether the validation was succesful or not. In case of errors, the content.library.item.updatesession.file.validation_result.missing_files and content.library.item.updatesession.file.validation_result.invalid_files will contain at least one entry.

missing_files string[] A set containing the names of the files that are required but the client hasn't added.

invalid_files validation_error[] A array containing the files that have been identified as invalid and details about the error.