feat: implement core backend architecture and project management services for the History API
Build and Release / release (push) Successful in 1m33s
Build and Release / release (push) Successful in 1m33s
This commit is contained in:
@@ -107,9 +107,10 @@ type ErrorResponse struct {
|
||||
|
||||
func formatValidationError(err error) []*ErrorResponse {
|
||||
var validationErrors validator.ValidationErrors
|
||||
var errorsList []*ErrorResponse
|
||||
errorsList := make([]*ErrorResponse, 0, 1)
|
||||
|
||||
if errors.As(err, &validationErrors) {
|
||||
errorsList = make([]*ErrorResponse, 0, len(validationErrors))
|
||||
for _, fieldError := range validationErrors {
|
||||
message := ""
|
||||
switch fieldError.Tag() {
|
||||
|
||||
Reference in New Issue
Block a user