Skip to content

Fix adding expanded entities to EntityProxy - #259

Merged
phanak-sap merged 1 commit into
SAP:masterfrom
manuelseeger:fixexpands
Nov 15, 2023
Merged

phanak-sap merged 1 commit into
SAP:masterfrom
manuelseeger:fixexpands

Conversation

@manuelseeger

Copy link
Copy Markdown
Contributor

EntityProxy expected expanded properties to be wrapped in a 'results' object, which isn't to V2 JSON spec. This fix removes this expectation. The original behavior is not removed, so if there happens to be an expanded property wrapped in a 'results' object, EntityProxy continues to work as before.

Fixes #258

EntityProxy expected expanded properties to be wrapped in a 'results'
object, which isn't to V2 JSON spec. This fix removes this expectation.
The original behavior is not removed, so if there happens to be an
expanded property wrapped in a 'results' object, EntityProxy continues
to work as before.

Fixes SAP#258
@cla-assistant

cla-assistant Bot commented Nov 15, 2023 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@phanak-sap phanak-sap self-assigned this Nov 15, 2023
@phanak-sap phanak-sap added the bug Something isn't working label Nov 15, 2023
@phanak-sap phanak-sap added this to the 1.11.0 milestone Nov 15, 2023
@phanak-sap

Copy link
Copy Markdown
Contributor

Simple, yet backward compatible fix with necessary changes of test suite. Perfect. Thanks @manuelseeger

@phanak-sap
phanak-sap merged commit 62ce9c3 into SAP:master Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expanded properties don't have their own results wrapper in V2 like this library expects

2 participants