-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Question]: Specify max and min range for double and decimal datatype #3130
Comments
Hey there! |
Hey, I am using that package. It doesnt support decimal.maxvalue or decimal.minvalue, or double.maxvalue, double.minvalue |
This is the code that handles Lines 190 to 213 in fc77e5a
On inspection, it looks like it would support If it's not working maybe it's a bug? Please provide a minimal reproducible example as a GitHub repository that demonstrates the issue you're experiencing so we can look into this further. |
What are you wanting to achieve?
Because of some requirements, I want to specify max and min values of decimal and double datatype for both of them but in the above case, the swagger is not showing maximum and minimum for both.
What code or approach do you have so far?
[Range[decimal.minvalue, decimal.maxvalue)]
public decimal amt { get; set; }
[Range[double.minvalue, double.maxvalue)]
public double pamt { get; set; }
How do I achieve the above so the max and min value of decimal and double is shown in swagger
Additional context
No response
The text was updated successfully, but these errors were encountered: