fix: increase name length limit from 32 to 128 characters in backup schedule schema (#330)

This commit is contained in:
Jakub Trávník 2026-01-09 18:29:35 +01:00 committed by GitHub
parent 5fc17950ba
commit 1d2e737a98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -29,7 +29,7 @@ import type { BackupSchedule, Volume } from "~/client/lib/types";
import { deepClean } from "~/utils/object";
const internalFormSchema = type({
name: "1 <= string <= 32",
name: "1 <= string <= 128",
repositoryId: "string",
excludePatternsText: "string?",
excludeIfPresentText: "string?",

View file

@ -124,7 +124,7 @@ export const getBackupScheduleForVolumeDto = describeRoute({
* Create a new backup schedule
*/
export const createBackupScheduleBody = type({
name: "1 <= string <= 32",
name: "1 <= string <= 128",
volumeId: "number",
repositoryId: "string",
enabled: "boolean",
@ -163,7 +163,7 @@ export const createBackupScheduleDto = describeRoute({
* Update a backup schedule
*/
export const updateBackupScheduleBody = type({
name: "(1 <= string <= 32)?",
name: "(1 <= string <= 128)?",
repositoryId: "string",
enabled: "boolean?",
cronExpression: "string",