diff --git a/api_response.go b/api_response.go index 5a245c9..62c0c84 100644 --- a/api_response.go +++ b/api_response.go @@ -431,7 +431,7 @@ func GetRepositoriesResponse(r *APIResponse) ([]Repository, error) { // GetRepositoryResponse cast Repositories into structure func GetRepositoryResponse(r *APIResponse) (Repository, error) { var m Repository - err := mapstructure.Decode(r.Values["values"], &m) + err := mapstructure.Decode(r.Values, &m) return m, err }