Kiota = Frustration #4492
Closed
danielniccoli
started this conversation in
General
Replies: 2 comments 2 replies
-
Hello @danielniccoli |
Beta Was this translation helpful? Give feedback.
2 replies
This comment was marked as off-topic.
This comment was marked as off-topic.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Every time I try and touch https://github.com/microsoftgraph/msgraph-sdk-python there is something that is broken, or missing documentation, or diffuse.
For examples,
1)
I need to send an email in MIME format. I know how to do it with an HTTP request, but the docs fail to explain how to do it with the msgraph SDK. The sample just shows the HTTP request: https://learn.microsoft.com/en-us/graph/api/user-sendmail?view=graph-rest-1.0&tabs=http#example-4-send-a-new-message-using-mime-format
2)
Sending it via JSON is documented, but wrong!
This throws
Import "msgraph.generated.models.send_mail_post_request_body" could not be resolved
! Instead, it can be found here.And because there's no proper documentation in this auto-generated crap, this can only be found by searching through the code base.
3)
And it doesn't help if neither the docs are updated, nor the issue that hasn't been touched by Microsoft since it's creation six months ago.
4)
I got some external help with the MIME problem above and it was suggested to use
However, this throws a
TypeError: body cannot be null.
Fact aside thatnull
does not exist in Python, the code shows the following:An parameter with the default value of
None
, annotated asoptional
, that is then checked if it isNone
and raises an error, if it is actuallyNone
. Fantastic!5) And now that everything is auto-generated, no one seems to feel responsible to actually deliver a stable product or documentation.
Beta Was this translation helpful? Give feedback.
All reactions