go-zero
go-zero copied to clipboard
Type Error Message Show More Detail In API Response
Is your feature request related to a problem? Please describe. Its not a problem, but a inconvenient. The 400 error message about mismatch type, only shows the name of this error type without the right type info, which require a double check in API doc.
Describe the solution you'd like I would like to return the name of the right type and wrong type, which could help front developers fix the problem faster.
Describe alternatives you've considered Nope
Additional context Nope
Progress
I am start to working on it, First to introduce this error message in Number Field check, then add it one by one.