diff --git a/src/lib/schemaValidation.ts b/src/lib/schemaValidation.ts index 3887b3d..cbdc3c8 100644 --- a/src/lib/schemaValidation.ts +++ b/src/lib/schemaValidation.ts @@ -379,7 +379,9 @@ const SnapshotSchema: JSONSchemaType = { 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",