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

Fixes #1301: Enable read the property without value #1302

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

xuzhg
Copy link
Member

@xuzhg xuzhg commented Aug 24, 2024

Fixes #1301 Enable read property without value

ODL supports to read the property without value. Here's an example:

{
    "@odata.context":"http://localhost/$metadata#Customers/$entity",
    "CustomerID": 17,
    "[email protected]":123,
    "[email protected]":true,
    "Location": { "Street":"154TH AVE"}
}

where, the property 'Name' only contains the instance annotations.

ODL can read the above properties and output the 'ODataReaderState.NestedPropertyInfo' in the reading pipeline.

This PR is to handle ''ODataReaderState.NestedPropertyInfo' and hold the 'ODataPropertyInfo' instances into a container, and provides an solution for end users to access such properties by customizing the deserializer.

It's a PR to retrieve the reading process out of the whole instance annotation features and try to make it small enough but a complete feature.

Make the PR as small as possible to help the code reviewing.

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.

Support property without property value
1 participant