diff --git a/models_test.go b/models_test.go index d443378..eb38c98 100644 --- a/models_test.go +++ b/models_test.go @@ -165,14 +165,14 @@ type Company struct { } type Team struct { - Name string `jsonapi:"attr,name"` - Leader *Employee `jsonapi:"attr,leader"` - Members []Employee `jsonapi:"attr,members"` + Name string `json:"name"` + Leader *Employee `json:"leader"` + Members []Employee `json:"members"` } type Employee struct { - Firstname string `jsonapi:"attr,firstname"` - Surname string `jsonapi:"attr,surname"` - Age int `jsonapi:"attr,age"` - HiredAt *time.Time `jsonapi:"attr,hired-at,iso8601"` + Firstname string `json:"firstname"` + Surname string `json:"surname"` + Age int `json:"age"` + HiredAt *time.Time `json:"hired-at,iso8601"` }