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 package utils
type Error struct { type Error struct {
Type string Type string `json:"type"`
Message string Message string `json:"message"`
Code string Code string `json:"code"`
} }
type ValidationError struct { type ValidationError struct {
Type string Type string `json:"type"`
Message string Message string `json:"message"`
Code string Code string `json:"code"`
Fields map[string]string Fields map[string]string `json:"fields"`
} }