Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/lib/schemaValidation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,9 @@ const SnapshotSchema: JSONSchemaType<Snapshot> = {
name: {
type: "string",
minLength: 1,
errorMessage: "Invalid snapshot; name is mandatory and cannot be empty"
maxLength:255,
pattern: "^.*\\S.*$",
errorMessage: "Invalid snapshot: name is mandatory, cannot be empty, and must not exceed 255 characters."
},
url: {
type: "string",
Expand Down