Skip to content

Commit

Permalink
add max length to URLSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
BurakYs committed May 26, 2024
1 parent b07c9a0 commit 96b8e8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/models/URL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const URLSchema = new Schema<IURL>({
url: {
type: String,
required: true,
maxlength: 4096,
validate: {
validator: urlValidation,
message: (props: ValidatorProps) => props.reason?.message || ''
Expand Down

0 comments on commit 96b8e8a

Please sign in to comment.