marpaia / chef-golang

Go library to interact with the Chef server API
Other
77 stars 31 forks source link

Extending/fixing the Node struct and updating the SearchResults struct #42

Closed svanharmelen closed 9 years ago

svanharmelen commented 9 years ago

The Node struct doesn’t have all the needed fields set correctly to be able to unmarshal a complete Node object.

The SearchResult struct makes it hard to unmarshal the actual search result (a row) into an corresponding (Node, Role, Environment) object. When leaving this data as json.RawMessage you can unmarshal it into what you actually expect…

marpaia commented 9 years ago

Thanks :)