This PR addresses the issue of the errors generated by ASP.NET's model-state validation not aligning with the recommended standard for all HNG boilerplate backends.
Changes proposed
What were you told to do?
Modify the error responses generated by the model-state validation to conform with the standards for all HNG Boilerplate backends.
What did you do?
Created custom error objects.
Created a custom model-state response factory.
Configured the response factory to override the default factory for validation errors.
Description
This PR addresses the issue of the errors generated by ASP.NET's model-state validation not aligning with the recommended standard for all HNG boilerplate backends.
Changes proposed
What were you told to do?
Modify the error responses generated by the model-state validation to conform with the standards for all HNG Boilerplate backends.
What did you do?
Check List (Check all the applicable boxes)
🚨Please review the contribution guideline for this repository.