Inconsistency in OpenSocial Person data object
-----------------------------------------------

                 Key: SHINDIG-1673
                 URL: https://issues.apache.org/jira/browse/SHINDIG-1673
             Project: Shindig
          Issue Type: Bug
          Components: Java
    Affects Versions: 3.0.0
            Reporter: Evgeny Bogdanov
            Priority: Minor


I have some troubles while interpreting the Person object from here:
http://opensocial-resources.googlecode.com/svn/spec/2.0.1/Social-Data.xml#Person

Precisely, it concerns the plural fields.

addresses:      Plural-Field <Address>
emails:                 Plural-Field <string>

In Shindig I have the following responses:
"emails":[{"objectId":1,"value":"evg_at_test.com","type":"email"}]
"addresses":[{"streetAddress":"Street","country":"Suisse","postalCode":"1024","objectId":1,"locality":"Ecublens"}]

So, either there is a problem in shindig or in specification.

1. If in shindig, the response should be different, where every address is 
wrapped within a Plural-Field object:
"emails":[{"objectId":1,"value":"evg_at_test.com","type":"email"}]
"addresses":[{"objectId":1,"value":{"streetAddress":"Street","country":"Suisse","postalCode":"1024","locality":"Ecublens"},"type":"something"]

2. If the problem in specification, then specification should be changed into:
addresses:      Array <Address>
emails:                 Plural-Field <string>

Discussion: 
https://groups.google.com/forum/#!topic/opensocial-and-gadgets-spec/5-Z3YTrVlVA

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to