Skip to content

Commit 9dbc742

Browse files
committed
do not allow empty name
1 parent f322b9c commit 9dbc742

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib/schemaValidation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ const SnapshotSchema: JSONSchemaType<Snapshot> = {
380380
type: "string",
381381
minLength: 1,
382382
maxLength:255,
383+
pattern: "^.*\\S.*$",
383384
errorMessage: "Invalid snapshot; name is mandatory and cannot be empty and cannot be more than 255 characters"
384385
},
385386
url: {

0 commit comments

Comments
 (0)