You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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: