hngprojects / hng_boilerplate_csharp_web

https://api-csharp.boilerplate.hng.tech
Apache License 2.0
78 stars 42 forks source link

feat: modify model-state error responses to conform to API standards #303

Closed Ace2489 closed 2 months ago

Ace2489 commented 2 months ago

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.