Address consistent json field case convention - use camelCase

This commit is contained in:
Samuel Hawksby-Robinson 2020-11-30 16:42:52 +00:00 committed by Andrea Maria Piana
parent 87f161da08
commit 79f2b0bcc7
1 changed files with 3 additions and 3 deletions

View File

@ -35,13 +35,13 @@ func (i IdentityImage) MarshalJSON() ([]byte, error) {
} }
temp := struct { temp := struct {
KeyUID string `json:"key_uid"` KeyUID string `json:"keyUid"`
Name string `json:"type"` Name string `json:"type"`
URI string `json:"uri"` URI string `json:"uri"`
Width int `json:"width"` Width int `json:"width"`
Height int `json:"height"` Height int `json:"height"`
FileSize int `json:"file_size"` FileSize int `json:"fileSize"`
ResizeTarget int `json:"resize_target"` ResizeTarget int `json:"resizeTarget"`
}{ }{
KeyUID: i.KeyUID, KeyUID: i.KeyUID,
Name: i.Name, Name: i.Name,