Google Groups

Re: how to represent collections


Laurent-Walter Goix Apr 16, 2012 8:48 PM
Posted in group: OpenSocial and Gadgets Specification Discussion
continuation of this thread on
http://groups.google.com/group/opensocial-and-gadgets-spec/browse_thread/thread/270fc3980696a724

On Mar 15, 9:19 pm, James M Snell <jasn...@gmail.com> wrote:
> Yes, this is a known issue a major frustration for me. I intend to
> clean up this portion of the spec as soon as I can but haven't been
> able to get there yet as I'm still working through core-gadget.
>
> On Thu, Mar 15, 2012 at 3:24 AM, Laurent-Walter Goix
>
>
>
>
>
>
>
> <laurentwalter.g...@gmail.com> wrote:
> > hello all,
>
> > i have realized to my understanding an inconsistency between OS and AS
> > on how to represent collections in json:
>
> > - AS (http://activitystrea.ms/specs/json/1.0/#collection) mentions
> > that the various items should be wrapped as array under "items", and
> > defines a "totalItems" property.
> > - OS (http://opensocial-resources.googlecode.com/svn/spec/2.0.1/Core-
> > Data.xml#ActivityStreamsCollection) mentions a "result", but
> > specifically an "entry" property where to fit the array and additional
> > parameters, such as "totalResults" in lieu of the AS "totalItems".
> > (which is btw opensearch compliant)
>
> > could this be clarified in the spec cleanup?
>
> > thanks
> > walter
>
> > --
> > You received this message because you are subscribed to the Google Groups "OpenSocial and Gadgets Specification Discussion" group.
> > To post to this group, send email to opensocial-an...@googlegroups.com.
> > To unsubscribe from this group, send email to opensocial-and-gadgets-spec+unsubscribe@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/opensocial-and-gadgets-spec?hl=en.