-
Notifications
You must be signed in to change notification settings - Fork 33
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
Incorrect type for "Identity" in "IdentitySet" #116
Comments
This is expected behavior per the metadata. This is an OpenType which means that undefined properties may be returned in this object. Additionally, <ComplexType Name="identity" OpenType="true">
<Property Name="displayName" Type="Edm.String" />
<Property Name="id" Type="Edm.String" />
</ComplexType> @ificator and @BarryShehadeh It seems like the |
Thank you for your answer. I was not clear but the issue is precisely about the |
I also ran into this issue. Any updates on this? |
I apologize, I somehow missed the previous notification from GitHub. So there are two questions:
For the former it will be useful to understand the scenario - was this a call against SharePoint or OneDrive Personal? what API was being invoked? For the latter - off the top of my head I don't see why this cannot be the case. There will be times when there is no email (e.g. if the |
|
Any kind of inconsistency should be viewed as a bug so we'll investigate what's going on with the |
Not that I know of, at the moment. Is there a better place to report those inconsistencies than the typings or docs repositories? Then I can report back there if I can consistently reproduce missing values using the Graph Explorer. |
For OneDrive / SharePoint API issues / questions the best place is https://github.com/OneDrive/OneDrive-api-docs. We generally only spot issues other repos when we're explicitly tagged. |
Hi @mpsijm we recently pushed a change that should result in |
@ificator Yes, on first sight it looks like it's been fixed, thanks 😄 Still need to some more thorough testing, if I find anything weird I'll report back 🙂 The |
Hello @mpsijm , could you please tell me how do you make the email and id of a user showing up consistently in the response CreatedBy filed. https://learn.microsoft.com/en-us/graph/api/resources/identity?view=graph-rest-1.0 |
@aigolang I did not do anything specific for this. The change in the API from #116 (comment) appeared to have fixed things, and we did not run into any issues since then. I still do not know under what circumstances some fields may be empty 😅 |
The type
Identity
seems to be different from what the API is returning. This error occured for us when retrieving the identity of the creator of the document using thecreatedBy.user
field on aDriveItem
.Expected (declared in
microsoft-graph.d.ts
line 8736)Returned by API
We tried to switch to the
beta
types but they are the same.We are for now casting the
createdBy.user
property to what the API is returning.AB#7046
The text was updated successfully, but these errors were encountered: