[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [OASIS Issue Tracker] (ODATA-820) Allow indexing into collections
[ https://issues.oasis-open.org/browse/ODATA-820?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60678#comment-60678 ]
Mark Stafford commented on ODATA-820:
-------------------------------------
In languages like Python and Perl, -1 means "the last item in the array", -2 means "the second-to-last item in the array", etc. It would be useful to introduce this semantic since we cannot order complex type collections in the context of a larger payload.
Note that this suggestion brings us out of alignment with JSON-Pointer, which does not support negative indexes.
> Allow indexing into collections
> -------------------------------
>
> Key: ODATA-820
> URL: https://issues.oasis-open.org/browse/ODATA-820
> Project: OASIS Open Data Protocol (OData) TC
> Issue Type: New Feature
> Components: OData URL Conventions, Vocabularies
> Affects Versions: V4.0_ERRATA02
> Environment: [Proposed]
> Reporter: Ralf Handl
> Assignee: Ralf Handl
> Labels: Extension, request_tc_discussion
> Fix For: V4.01_WD01
>
>
> Allow indexing into collections.
> If servers can guarantee a stable order, they could advertise this via an annotation.
> This could be combined with ETags to identify the state the client is referring to.
> This might be combined with $orderby to let the client choose the order.
--
This message was sent by Atlassian JIRA
(v6.2.2#6258)
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]