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

Does not work for reading enum value for untyped property with odata.type annotated #954

Closed
xuzhg opened this issue Jun 12, 2023 · 1 comment · Fixed by #1004
Closed
Assignees
Labels
bug Something isn't working

Comments

@xuzhg
Copy link
Member

xuzhg commented Jun 12, 2023

if we post a request using

{
    "name": "sam",
    "gender": "Male",
    "[email protected]":"#UntypedApp.Models.Gender",
    "data": "Male"
}

There's a type annotation for 'data'.

Expected behavior
Shoudl read it as 'Gender.Male' for 'Data' property.

** Actual behavior**
It's failed.

@xuzhg xuzhg added the bug Something isn't working label Jun 12, 2023
@xuzhg
Copy link
Member Author

xuzhg commented Jun 12, 2023

It's also failing if we specify a @odata.type for a single resource for 'Data'.

@xuzhg xuzhg self-assigned this Jun 12, 2023
xuzhg added a commit that referenced this issue Feb 5, 2024
#1004)

* fixes #954, enable to read the untyped value with odata.type annotated

* Resolve the comments

* Address the comments and fixes the failing test cases
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 a pull request may close this issue.

1 participant