Open PlesnikJakub opened 2 years ago
In #75 we implemented a range validator for the difficulty attribute of the Question object. The existing solution is great for validation on API but we should also extend our domain of such rules so the domain is holding the business rules.
in CreateQuestionInput.cs and UpdateInterviewQuestionInput.cs:
Difficulty
init
Furthermore, a similar rule can be added to the infrastructure layer of the EF entity.
[Range(0,100)] public int Difficulty { get; set; }
Amazing! 🌞 Let us know in the comment below and we will assign it to you. Don't hesitate to ask for more info. We are here to help.
Hi. Can I work on this issue ?
Description
In #75 we implemented a range validator for the difficulty attribute of the Question object. The existing solution is great for validation on API but we should also extend our domain of such rules so the domain is holding the business rules.
in CreateQuestionInput.cs and UpdateInterviewQuestionInput.cs:
Difficulty
attribute to not nullableinit
method that the value is between 0 - 100Furthermore, a similar rule can be added to the infrastructure layer of the EF entity.
Acceptance Criteria
Want to work on this issue?
Amazing! 🌞 Let us know in the comment below and we will assign it to you. Don't hesitate to ask for more info. We are here to help.