Skip to content

Commit 0958a8e

Browse files
authored
Merge pull request #415 from Nick-1234531/DOT-6869
changes to limit snapshot name length
2 parents 8f6d8b4 + 349a69d commit 0958a8e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib/schemaValidation.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,9 @@ 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+
pattern: "^.*\\S.*$",
384+
errorMessage: "Invalid snapshot: name is mandatory, cannot be empty, and must not exceed 255 characters."
383385
},
384386
url: {
385387
type: "string",

0 commit comments

Comments
 (0)