jsonapi-converter icon indicating copy to clipboard operation
jsonapi-converter copied to clipboard

Proposal for the @Relationship resolutionStrategy attribute.

Open emetsger opened this issue 8 years ago • 3 comments

Using a ResolutionStrategy#REF allows the developer to record a string reference to the target of a relationship instead of resolving the relationship. Proposed approach for addressing issue #31

emetsger avatar May 06 '16 17:05 emetsger

@jasminb If I rebase this after your recent merges would you consider this new annotation?

emetsger avatar May 24 '16 19:05 emetsger

Hey @emetsger, yes it is something that has its uses. Please have in mind that introduction of JsonApiDocument that I am currently working on will change some stuff, so maybe wait with rebase until that one is merged.

jasminb avatar May 24 '16 20:05 jasminb

@jasminb just FYI, I rebased the PR against the tip of develop.

I was thinking about renaming ResolutionStrategy.OBJECT to ResolutionStrategy.DEREF.

I can also add some additional documentation on this feature to the README if it would help this PR to be accepted :)

emetsger avatar Jun 23 '16 02:06 emetsger