Congrats, Murillo. Looking forward to the next chapters!
I just want to add that I saw the opportunity of using something like a JSON schema validator instead of the last expect that validates all fields of object. What do you think about that?
In fact this is a great idea, it would work perfectly for this scenario. Perhaps in a scenario where there are business rules, where the fields dynamically change payload it would easier to do this validation of the keys as I did.
I will try to add a contract test as you suggested in the next one.
Thanks for you suggestion, Thiago!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Congrats, Murillo. Looking forward to the next chapters!
I just want to add that I saw the opportunity of using something like a JSON schema validator instead of the last expect that validates all fields of object. What do you think about that?
In fact this is a great idea, it would work perfectly for this scenario. Perhaps in a scenario where there are business rules, where the fields dynamically change payload it would easier to do this validation of the keys as I did.
I will try to add a contract test as you suggested in the next one.
Thanks for you suggestion, Thiago!