fix: increase name length limit from 32 to 128 characters in backup schedule schema (#330)
This commit is contained in:
parent
5fc17950ba
commit
1d2e737a98
2 changed files with 3 additions and 3 deletions
|
|
@ -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?",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue