From f8df2b95b0be0b2824a60c1f1749655898ea3123 Mon Sep 17 00:00:00 2001 From: kandrusyak Date: Fri, 13 Oct 2023 00:42:20 +0300 Subject: [PATCH] update json field names --- pkg/utils/validation.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkg/utils/validation.go b/pkg/utils/validation.go index ecc40dd..b5f35d6 100644 --- a/pkg/utils/validation.go +++ b/pkg/utils/validation.go @@ -1,14 +1,14 @@ package utils type Error struct { - Type string - Message string - Code string + Type string `json:"type"` + Message string `json:"message"` + Code string `json:"code"` } type ValidationError struct { - Type string - Message string - Code string - Fields map[string]string + Type string `json:"type"` + Message string `json:"message"` + Code string `json:"code"` + Fields map[string]string `json:"fields"` }