Minimum and maximum restrictions for BigInteger
shav opened this issue · 0 comments
shav commented
Hello!
I have the next type:
public record WebRequest
{
public BigInteger BigIntegerField { get; set; }
}
and fluent validation for it:
public class WebRequestValidator : AbstractValidator<WebRequest>
{
public WebRequestValidator()
{
RuleFor(x => x.BigIntegerField)
.InclusiveBetween(new BigInteger(0), new BigInteger(12345678900)); // <-- this is just example
}
}
Now no restrictions are displayed in swagger for this field of type BigInteger.
Could you add displaying minimum and maximum restrictions for fields of type BigInteger, like for other numeric types (int, long, double, decimal)?