Skip to content

Commit

Permalink
ComponentFirmwareVersion json tag to be consistent (#224)
Browse files Browse the repository at this point in the history
json tag should be using snake_case to be consistent with the rest of
server service structs.
  • Loading branch information
diogomatsubara authored Aug 7, 2023
1 parent bbcf5b0 commit 94b3a8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/api/v1/firmware.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ type ComponentFirmwareVersion struct {
Version string `json:"version" binding:"required"`
Component string `json:"component" binding:"required,lowercase"`
Checksum string `json:"checksum" binding:"required,lowercase"`
UpstreamURL string `json:"upstreamURL" binding:"required"`
RepositoryURL string `json:"repositoryURL" binding:"required"`
UpstreamURL string `json:"upstream_url" binding:"required"`
RepositoryURL string `json:"repository_url" binding:"required"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
Expand Down

0 comments on commit 94b3a8b

Please sign in to comment.