Skip to content

Maintain case for parameter alias in generated nextlink - #740

Merged
gathogojr merged 1 commit into
OData:mainfrom
gathogojr:fix/2493-maintain-case-for-parameter-alias-in-nextlink
Nov 14, 2022
Merged

Maintain case for parameter alias in generated nextlink#740
gathogojr merged 1 commit into
OData:mainfrom
gathogojr:fix/2493-maintain-case-for-parameter-alias-in-nextlink

Conversation

@gathogojr

@gathogojr gathogojr commented Nov 7, 2022

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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?

@gathogojr gathogojr Nov 9, 2022

Copy link
Copy Markdown
Contributor Author

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

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