Skip to content

Commit

Permalink
Remove [Required] attribute from MenuItem DTOs
Browse files Browse the repository at this point in the history
  • Loading branch information
enisn committed Jan 22, 2024
1 parent 64e19ac commit 594b644
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ public class MenuItemCreateInput : ExtensibleObject

public bool IsActive { get; set; }

[Required]
public string Url { get; set; }

public string Icon { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ public class MenuItemUpdateInput : ExtensibleObject, IHasConcurrencyStamp

public bool IsActive { get; set; }

[Required]
public string Url { get; set; }

public string Icon { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ public async Task CreateAsync_ShouldWorkProperly_WithOnlyName()
var menu = await MenuAdminAppService.CreateAsync(new MenuItemCreateInput
{
DisplayName = name,
Url = "#"
});

menu.ShouldNotBeNull();
Expand Down

0 comments on commit 594b644

Please sign in to comment.