feat: remove Gin and standardize on nethttp
This commit is contained in:
@@ -21,7 +21,7 @@ func newValidator() *validator.Validate {
|
||||
}
|
||||
|
||||
// JSON binds and validates a JSON request body using standard-library HTTP
|
||||
// types. It intentionally does not depend on Gin.
|
||||
// types. It intentionally does not depend on a network framework.
|
||||
func JSON(request *http.Request, value any) error {
|
||||
if request == nil || request.Body == nil {
|
||||
return apierrors.BadRequest("INVALID_BODY", "request body is invalid")
|
||||
|
||||
Reference in New Issue
Block a user