-
Notifications
You must be signed in to change notification settings - Fork 29
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
Add id to icarResource.json #264
Comments
For now the datatype of the Id is string. But it must be a unique value across all resources coming from a given server. This can be stated in the API and does not affect the data model. So for now we are NOT requiring the use of URIs for identity of individual resources. |
It appears the use of id in sub types of resource is not consistent. Some are strings and some are schema and value. e.g. icarReproEmbryoResource |
Option 4. Use sourceId |
Thank you @cookeac for putting links to our previous discussions. |
I have reviewed this some more. From the discussion in #153 and the latest text in the resource type:
I think it can be concluded that sourceId should be a globally or at least source unique identifier. Specifically, it is not scoped to resource type. Proposal: Require sourceId in the meta section of resources being exchanged via the protocol. The client consuming a feed from a server will need to label the source so this is not required. While not ideal (looks a little bit ugly, possibly confusing) it requires no data model changes and no redefinition of what should be in the property. |
Agreed to use sourceId. This issue will be closed as it requires no changes to the model. |
Although we decide on approach. Decided to leave open up PR is merged. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
For the streaming API to work all resources must have an id.
Options:
add id field to icarResource. Simple string value. Aligns well with the current use of id on many sub resources. e.g. icarResource.json and many others. Means some resources without the id property will now need to be given it.
add id field to meta
Protocol States: resource instance representations must have the meta property and this must contain meta and id.
Backwards compatible. Requires protocol to define the need for this to be present. No change to any resources as is. id would be defined as string. Maybe call this resourceId?
Mandate the use of @self property in the protocol. This by definition must be a globally unique value. No changes needed for this. Slightly mixes addressing and identity.
Proposal: (1).
The text was updated successfully, but these errors were encountered: