Ensure Custom Format Maximum Size won't overflow

(cherry picked from commit a50d2562649bbe77d0feb9fbfc594d56952e0a5e)
This commit is contained in:
Stevie Robinson 2025-05-22 02:52:16 +02:00 committed by Bogdan
parent 159f5df8cc
commit 04f26dbff7

View file

@ -11,6 +11,7 @@ public SizeSpecificationValidator()
{
RuleFor(c => c.Min).GreaterThanOrEqualTo(0);
RuleFor(c => c.Max).GreaterThan(c => c.Min);
RuleFor(c => c.Max).LessThanOrEqualTo(double.MaxValue);
}
}