Skip to content

Commit

Permalink
Added bookmark name size restrictions
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLazarescu committed Oct 19, 2023
1 parent 05c1bc3 commit 45fb54a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Application/Common/DTOs/Bookmarks/BookmarkInDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public class BookmarkInDto
public Guid Guid { get; set; }

[Required]
[MaxLength(200, ErrorMessage = "The name is too long")]
public string Name { get; set; }

[Required]
Expand Down
1 change: 1 addition & 0 deletions src/Domain/Entities/Bookmark.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public class Bookmark
public Guid BookmarkId { get; set; }

[Required]
[MaxLength(200, ErrorMessage = "The name is too long")]
public string Name { get; set; }

[Required]
Expand Down

0 comments on commit 45fb54a

Please sign in to comment.