OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

odata-comment message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Specification of $count for "Delta Responses"


Reading the new specification of "Delta Responses" (http://docs.oasis-open.org/odata/odata-json-format/v4.0/csprd01/odata-json-format-v4.0-csprd01.zip => odata-json-format-v4.0-csprd01.pdf => chapter 14) I have two comments:

1) The way how the $count behavior is defined seems inconsistent with the behavior of $count on "normal" EntitySets. There, $count returns the number of instances in the specified EntitySet. That means, for example, that if $count returns 0 a GET without $count returns an empty feed. With the current specification - not counting added or deleted links - this coherence does not apply anymore.

2) The specification is not clear whether 'the returned count is the count of added, changed, or deleted entities' includes "expanded" entities or not. In the example you mention this would mean: does #4 count or not? In other words, would $count in this example return 2 or 3?

Many thanks, 
Marko 




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]