'Validation occurs even Data Anotations is not set
I am working on dot net core 3.1.I have a form for submitting product details. I have used Data annotations with jquery validations. My problem is when I try to submit the form even the field which I have'nt used data annotations is getting stops by validations. Even If I comment all data annotations in the modal also the validations is stopping me. I dont know what is causing problem. I have tried by cleaning and rebuild the solutions. But the problem remains.
I am getting below validation errors,
Below is the modal which I have'nt added data annotations,
Below is cshtml, 
Please help. Thanks in advance.
Solution 1:[1]
It's important to note that your model validation takes into consideration the datatype of the fields. So fields like decimal or int are non-nullable. But you can solve this by declaring your fields as nullable. For such types, you don't need to declare [Required] because by their very nature they cannot be null unless declared nullable using ? operator.
Example:
public decimal? DiscountedProductPrice
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Mosia Thabo |
