Skip to content

Commit 95efad2

Browse files
committed
EES-5787 Allow Chart.Title to be null
1 parent 94c4123 commit 95efad2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GovUk.Education.ExploreEducationStatistics.Admin/Requests/DataBlockRequests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public Validator()
7070
{
7171
chart
7272
.RuleFor(request => request.Title)
73-
.NotEmpty()
73+
.NotEmpty().When(request => request.Title != null)
7474
.MaximumLength(220);
7575

7676
chart.RuleFor(request => request.Alt)

0 commit comments

Comments
 (0)