diff --git a/src/apps.js b/src/apps.js index c7194949f..c279a17cb 100644 --- a/src/apps.js +++ b/src/apps.js @@ -305,6 +305,14 @@ function validateRobotsTxt(robotsTxt) { return null; } +function validateBackupFormat(format) { + assert.strictEqual(typeof format, 'string'); + + if (format === 'tgz' || format == 'rsync') return null; + + return new AppsError(AppsError.BAD_FIELD, 'Invalid backup format'); +} + function validateLabel(label) { if (label === null) return null;