[
https://issues.apache.org/jira/browse/SHINDIG-787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12663173#action_12663173
]
Adam Winer commented on SHINDIG-787:
------------------------------------
Yes, exactly. The "opensocial.Name" from the opensocial reference is the
Javascript API, not the wire protocol (which the Java API must match).
So the Java API needs to send "formatted". fieldtranslations.js already
changes the wire format to match the JS API, as in:
FieldTranslations.translateServerPersonToJsPerson = function(serverJson) {
...
serverJson.addresses[j].unstructuredAddress =
serverJson.addresses[j].formatted;
}
> Name field of Person and Address should be "formatted", not "unstructured"
> --------------------------------------------------------------------------
>
> Key: SHINDIG-787
> URL: https://issues.apache.org/jira/browse/SHINDIG-787
> Project: Shindig
> Issue Type: Bug
> Components: RESTful API (Java)
> Affects Versions: trunk
> Reporter: Adam Winer
> Priority: Critical
>
> The proper name of the field in the name object for Person and Adress objects
> is "formatted", not "unstructured", as these objects need to match the
> RESTful spec. This is contra SHINDIG-764, which was checked in (incorrectly)
> with SVN revision 723617.
> When fixing this, the doc should also be fixed to reflect that these objects
> must mimic the RESTful spec (not the JS doc, as they incorrectly do).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.