Skip to content
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

Maintain case for parameter alias in generated nextlink #740

Conversation

gathogojr
Copy link
Contributor

@gathogojr gathogojr commented Nov 7, 2022

Issues

This pull request fixes OData/WebApi#2493.

Description

Maintain case for parameter alias in generated nextLink

Checklist (Uncheck if it is not completed)

  • Test cases added
  • Build and test with one-click build and test script passed

Additional work necessary

If documentation update is needed, please add "Docs Needed" label to the issue and provide details about the required document change in the issue.

// Arrange
var requestUri = "/prefix/ServerSidePagingEmployees/" +
"GetEmployeesHiredInPeriod(fromDate=@fromDate,toDate=@toDate)" +
"?@fromDate=2023-01-07T00:00:00%2B00:00&@toDate=2023-05-07T00:00:00%2B00:00";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this change affect query options?

Copy link
Contributor Author

@gathogojr gathogojr Nov 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@habbes It doesn't affect OData query options. This means that if the there was $ORDERBY on the request URL (I don't know if it's allowed), it'll be returned as $orderby on the @odata.nextLink in the response body. I think that should be okay

@gathogojr gathogojr merged commit 9f1547e into OData:main Nov 14, 2022
@gathogojr gathogojr deleted the fix/2493-maintain-case-for-parameter-alias-in-nextlink branch November 14, 2022 05:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Problem when generating OData nextlink with a function parameter alias
3 participants