update json field names

This commit is contained in:
kandrusyak
2023-10-13 00:42:20 +03:00
parent dc7e3d195e
commit f8df2b95b0

View File

@@ -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"`
}