fix: add yaml tags to models so we can unmarshal camelCase (#148)

This commit is contained in:
Daniel Moran
2021-06-28 10:18:41 -04:00
committed by GitHub
parent a1921e1e59
commit 7ea63d6a96
153 changed files with 1142 additions and 678 deletions

View File

@ -16,13 +16,13 @@ import (
// Error struct for Error
type Error struct {
Code ErrorCode `json:"code"`
Code ErrorCode `json:"code" yaml:"code"`
// message is a human-readable message.
Message string `json:"message"`
Message string `json:"message" yaml:"message"`
// op describes the logical code operation during error. Useful for debugging.
Op *string `json:"op,omitempty"`
Op *string `json:"op,omitempty" yaml:"op,omitempty"`
// err is a stack of errors that occurred during processing of the request. Useful for debugging.
Err *string `json:"err,omitempty"`
Err *string `json:"err,omitempty" yaml:"err,omitempty"`
}
// NewError instantiates a new Error object