Sharebar?

Extensions in embedded objects (e.g. user.orgs)

Extensions in embedded objects (e.g. user.orgs)

Hi all,

The spec calls for all extensions to be placed under the `metadata' object – for example user.metadata['org.customfield']. We'd like to extend an association – namely, adding an `orgRole' field under user.orgs.
The spec doesn't really describe an appropriate mechanism to extend associations like this ~ does this ring plausible?


{
"user" : {
"sourcedId" : "",
...
"orgs": [{
"href": ""
"sourcedId": ""
"type" : "org",
"metadata": {
"orgRole": ""
}
}]
}
}