-
Notifications
You must be signed in to change notification settings - Fork 75
feature/odata cast derivedconstraint #303
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E2E logic makes sense.
Waiting on:
- Are return type changes breaking?
- Decision from microsoft/Vipr#147 (comment), in case it requires changes in this repository.
Templates/Java/requests_extensions/BaseEntityCollectionWithReferencesRequest.java.tt
Show resolved
Hide resolved
Templates/Java/requests_extensions/BaseEntityCollectionWithReferencesRequest.java.tt
Show resolved
Hide resolved
@zengin thanks for the great feedback! replied to both. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- tests need the same updates
yep, I just saw that, on it :) |
@zengin I actually had forgotten a file in my last commit 🤦♂️ |
Summary
Adds support for odata casting in Java (and more generally in typewriter) by leveraging drived type constraints annotations.
replaces #302
links
https://github.com/oasis-tcs/odata-vocabularies/blob/master/vocabularies/Org.OData.Validation.V1.xml#L147
https://docs.microsoft.com/en-us/odata/webapi/built-in-routing-conventions
Generated code differences
microsoftgraph/msgraph-sdk-java#509