-
Notifications
You must be signed in to change notification settings - Fork 352
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
Parser conflict between UrlConventions KeyAsSegment and last segment == TypeSegment #349
Comments
Parser conflict between UrlConventions KeyAsSegment and last segment == TypeSegment This change identifies type segments higher up in the processing, so we can elect to NOT try to handle it as a key segment if we know it's a type.
Thanks a lot for the PR. This is designed behavior, when KeyAsSegment is truned on, every element appear in the key placeholder would be treated as key, and you should use '$' to escape all non-key segments. So /Me/Messages/$/Microsoft.OutlookServices.EventMessage should work for that case. If taking this, this would introduce breaking changes to existing users who would expect all unescaped key candidates to be actual keys. |
Parser conflict between UrlConventions KeyAsSegment and last segment == TypeSegment This change identifies type segments higher up in the processing, so we can elect to NOT try to handle it as a key segment if we know it's a type.
Checked in f1dcbff |
When submitting a request with a TypeSegment and using UrlConventions KeyAsSegment,(example: /Me/Messages/Microsoft.OutlookServices.EventMessage) the ODataUriParser returns the last segment as a KeySegment and not a TypeSegment. When removing the UrlConventions KeyAsSegment the UriParser recognizes the last segment to be a TypeSegment.
The text was updated successfully, but these errors were encountered: