Skip to content

Minimum and maximum restrictions for BigInteger #146

@shav

Description

@shav

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)?
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions