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";
|
import { deepClean } from "~/utils/object";
|
||||||
|
|
||||||
const internalFormSchema = type({
|
const internalFormSchema = type({
|
||||||
name: "1 <= string <= 32",
|
name: "1 <= string <= 128",
|
||||||
repositoryId: "string",
|
repositoryId: "string",
|
||||||
excludePatternsText: "string?",
|
excludePatternsText: "string?",
|
||||||
excludeIfPresentText: "string?",
|
excludeIfPresentText: "string?",
|
||||||
|
|
|
||||||
|
|
@ -124,7 +124,7 @@ export const getBackupScheduleForVolumeDto = describeRoute({
|
||||||
* Create a new backup schedule
|
* Create a new backup schedule
|
||||||
*/
|
*/
|
||||||
export const createBackupScheduleBody = type({
|
export const createBackupScheduleBody = type({
|
||||||
name: "1 <= string <= 32",
|
name: "1 <= string <= 128",
|
||||||
volumeId: "number",
|
volumeId: "number",
|
||||||
repositoryId: "string",
|
repositoryId: "string",
|
||||||
enabled: "boolean",
|
enabled: "boolean",
|
||||||
|
|
@ -163,7 +163,7 @@ export const createBackupScheduleDto = describeRoute({
|
||||||
* Update a backup schedule
|
* Update a backup schedule
|
||||||
*/
|
*/
|
||||||
export const updateBackupScheduleBody = type({
|
export const updateBackupScheduleBody = type({
|
||||||
name: "(1 <= string <= 32)?",
|
name: "(1 <= string <= 128)?",
|
||||||
repositoryId: "string",
|
repositoryId: "string",
|
||||||
enabled: "boolean?",
|
enabled: "boolean?",
|
||||||
cronExpression: "string",
|
cronExpression: "string",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue