Skip to content

fix: [ODatav4] Support for property name properties #886

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

Merged
merged 4 commits into from
Aug 12, 2025

Conversation

CharlesDuboisSAP
Copy link
Contributor

@CharlesDuboisSAP CharlesDuboisSAP commented Aug 11, 2025

Context

Generating an OData v4 client with a property name properties would create a collision with an internal variable.

Feature scope:

  • Renamed internal `properties´ variable to cloudSdkProperties

Definition of Done

  • Functionality scope stated & covered
  • Tests cover the scope above
  • Error handling created / updated & covered by the tests above
  • Documentation updated
  • Release notes updated

@CharlesDuboisSAP CharlesDuboisSAP self-assigned this Aug 11, 2025
@CharlesDuboisSAP CharlesDuboisSAP added please merge Request to merge a pull request please review Request to review a pull request labels Aug 11, 2025
final Object value = cloudSdkValues.remove("properties");
if( value instanceof Iterable ) {
final LinkedList<ProductCount> properties = new LinkedList<ProductCount>();
for( Object cloudSdkProperties : ((Iterable<?>) value) ) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here was the collision before the fix

@CharlesDuboisSAP CharlesDuboisSAP enabled auto-merge (squash) August 12, 2025 11:00
@newtork
Copy link
Contributor

newtork commented Aug 12, 2025

image :)

@CharlesDuboisSAP CharlesDuboisSAP merged commit b54417c into main Aug 12, 2025
14 checks passed
@CharlesDuboisSAP CharlesDuboisSAP deleted the fix-odatav4-properties branch August 12, 2025 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
please merge Request to merge a pull request please review Request to review a pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants