-
Notifications
You must be signed in to change notification settings - Fork 62
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
Expands navigation properties of derived types only if declaring navigation property is a containment #302
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.
👍🏼
Thanks @irvinesunday |
Adding more information for context: The table below shows the number of beta paths generated when the two convert settings
@peombwa / @timayabi2020 we might need to verify the generated OpenAPI document with PowerShell to verify whether there are any modules that might break AutoREST due to the increase in size. |
Thanks @irvinesunday for the breakdown! Since OData type cast is currently not enabled in DevX API, we may see an increase of Also, is |
Yes @peombwa, both settings are currently set to |
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.
I'm a bit worried by the increase in the number of paths here, but I think we need to validate it before making a final decision. It'd be interesting to have a comparison of the newly added paths and see whether the service actually understands them. Especially for "deep" paths.
(sorry about the auto-merge) |
Fixes #269
This PR:
To fully resolve the aforementioned issue, the below convert settings need to be set to
true
:ExpandDerivedTypesNavigationProperties
AppendBoundOperationsOnDerivedTypeCastSegments
With the above fix and the above settings set to
true
, the result, for the examples provided in the issue, will be:https://docs.microsoft.com/en-us/graph/api/ediscovery-caseexportoperation-getdownloadurl?view=graph-rest-beta

https://docs.microsoft.com/en-us/graph/api/intune-apps-mobileappcontentfile-commit?view=graph-rest-1.0
