Skip to content

Commit

Permalink
Fix schema version
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Jul 30, 2020
1 parent 2c0fc62 commit e34f7db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion badge.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func init() {
type Badge struct {
// Schema version. Always the number 1.
// Required.
Version int `json:"schema_version" schema:"-"`
Version int `json:"schemaVersion" schema:"-"`

// The left text, or the empty string to omit the left side of the badge.
// Required.
Expand Down
2 changes: 1 addition & 1 deletion badge_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func TestFromRequest(t *testing.T) {
label := "foo"
message := "bar"
values := url.Values{}
values.Set("schema_version", "2") // ignored
values.Set("schemaVersion", "2") // ignored
values.Set("label", "fizz")
values.Set("labelColor", ColorGreen)
values.Set("message", "buzz") // ignored
Expand Down

0 comments on commit e34f7db

Please sign in to comment.