Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimum and maximum restrictions for BigInteger #146

Open
shav opened this issue Jun 7, 2024 · 0 comments
Open

Minimum and maximum restrictions for BigInteger #146

shav opened this issue Jun 7, 2024 · 0 comments

Comments

@shav
Copy link

shav commented Jun 7, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant