Skip to content

Conversation

@L-four
Copy link
Contributor

@L-four L-four commented Sep 29, 2018

As per the jsonapi Resource Objects should be able to have "meta" member pointing to a "Meta Object"

@wwwdata
Copy link
Member

wwwdata commented Sep 30, 2018

Thank you for this PR. Could you please add a test for this as well then we can merge it.

// want any meta.
type MarshalMeta interface {
MarshalIdentifier
GetMeta() Meta
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should omit the "Get" from the getter (https://golang.org/doc/effective_go.html?#Getters). someStruct.Meta() would read just as nice :)

@L-four
Copy link
Contributor Author

L-four commented Oct 18, 2018

I added a basic test and updated the method as per @sharpner recommendation but now the travis-ci build/tests are failing it appears that "github.com/golang/lint/golint" has moved or am I missing something?

@sharpner
Copy link
Member

Thanks! I opened a separate PR to check if it fixes your problem. ;) #321

@wwwdata
Copy link
Member

wwwdata commented Oct 18, 2018

thanks, can you rebase on master, then the travis tests should be running again

@L-four
Copy link
Contributor Author

L-four commented Oct 19, 2018

Thanks for resolving the Travis-ci issue rebase on master should be good to go now. 😄

@wwwdata wwwdata merged commit 186a8a2 into manyminds:master Oct 19, 2018
artlo pushed a commit to retailnext/api2go that referenced this pull request May 4, 2023
…anyminds#320)

- Changed the Meta field to use json.RawMessage type to match which Attributes
- Added Basic test for New GetMeta Interface
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants