-
Notifications
You must be signed in to change notification settings - Fork 35
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
Bug: type of FileAttachment.contentBytes
should be string
instead of number
#23
Comments
@abdulkareemnalband Thank you for reporting. will look into this and get back to you. |
@muthurathinam This is declared as |
Verifying that sending this property in as a base64 encoded string is what is accepted by the API.
or
Either will be accepted by the API when adding the attachment. |
This issue is still present and I've submitted a PR to correct the mistake. In the PR I link to the documentation and describe that it contains a contradiction that caused this error in the first place. In short, the type is not The impact of this bug is forcing test authors to cast through Thanks for all your hard work and efforts on this and I hope this PR helps! ❤️ |
I also raised this issue with the Docs project here: https://github.com/microsoftgraph/microsoft-graph-docs-contrib/issues/1972 |
The fix was made upstream and the corrected types are in PR microsoftgraph/microsoft-graph-docs#328 ❤️ Thanks to everyone who helped with this! |
Bug
Type of
FileAttachment.contentBytes
should bestring
instead ofnumber
in
msgraph-typescript-typings/microsoft-graph.d.ts
Line 1920 in 33025e1
AB#7041
The text was updated successfully, but these errors were encountered: