-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ODATA-1506: Allow numeric index segment in path expressions #59
base: v4.02-release-candidate
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@@ -564,12 +564,15 @@ collectionPathExpr = count [ OPEN expandCountOption *( SEMI expandCountOption ) | |||
/ "/" allExpr | |||
/ "/" boundFunctionExpr | |||
/ "/" annotationExpr | |||
/ "/" indexExpr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer the less invasive variant
$orderby=components($orderby=name;$index=0)/name
so we need not introduce index segments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will also require extending the path expression syntax, allowing nested query options - at least $orderby
and $index
, see #61
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - nice space compression 🙈
This is an alternative to #61 and fixes oasis-tcs/odata-specs#342