Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce LocalID and update go.mod dependencies to the latest #352

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

artlo
Copy link

@artlo artlo commented May 4, 2023

Introducing the LocalID feature that was introduced in jsonapi specification.

  • LocalID is added to ID, single and multiple Reference ID
  • GetID method was reworked that it returns the identifier object. The identifier contains the ID, LID and model Name
  • remove GetName method since the Name is part of Identifier

Update the dependencies to the latest and as result have to support only the latest Go versions.

Artem Lobanov and others added 4 commits March 28, 2023 16:15
According to upcoming v1.1 of the JSONAPI the document object
identification is a combination of three values: id, type and
lid (local id). Local id is an id that can be generated when
entity was created but not yet persisted to the DB. In the
JSONAPI it should allow client to match data which he created
and then received back from the server.
Identifier is a usefull object for which has id, local id and entity
name/type. This update should fit the upcoming jsonapi v1.1 release
where each object identifier hat this three attributes.
@artlo
Copy link
Author

artlo commented Jun 9, 2023

@wwwdata , Could you please take a look if you have a time?

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.

2 participants