Library_Item_Updatesession_File_ValidationResult

Library_Item_Updatesession_File_ValidationResult
Library_Item_Updatesession_File_ValidationResult

The File.ValidationResult structure defines the result of validating the files in the session.

JSON Example
{
    "has_errors": false,
    "missing_files": [
        "string"
    ],
    "invalid_files": [
        {
            "name": "string",
            "error_message": {
                "id": "string",
                "default_message": "string",
                "args": [
                    "string"
                ],
                "params": {
                    "params": {
                        "s": "string",
                        "dt": "string",
                        "i": 0,
                        "d": "number",
                        "l": {
                            "id": "string",
                            "params": {
                                "params": "Std_LocalizationParam Object"
                            }
                        },
                        "format": "string",
                        "precision": 0
                    }
                },
                "localized": "string"
            }
        }
    ]
}
boolean
has_errors
Required

Whether the validation was succesful or not. In case of errors, the File.ValidationResult.missing-files and File.ValidationResult.invalid-files will contain at least one entry.

array of string
missing_files
Required

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

invalid_files
Required

A list containing the files that have been identified as invalid and details about the error.