Skip to content

Commit f322b9c

Browse files
committed
changes to limit snapshot name length
1 parent 9f8793c commit f322b9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/schemaValidation.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,8 @@ const SnapshotSchema: JSONSchemaType<Snapshot> = {
379379
name: {
380380
type: "string",
381381
minLength: 1,
382-
errorMessage: "Invalid snapshot; name is mandatory and cannot be empty"
382+
maxLength:255,
383+
errorMessage: "Invalid snapshot; name is mandatory and cannot be empty and cannot be more than 255 characters"
383384
},
384385
url: {
385386
type: "string",

0 commit comments

Comments
 (0)