diff --git a/badge.go b/badge.go index 1c3932e..3ea0139 100644 --- a/badge.go +++ b/badge.go @@ -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. diff --git a/badge_test.go b/badge_test.go index ee60508..9295658 100644 --- a/badge_test.go +++ b/badge_test.go @@ -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