-
Notifications
You must be signed in to change notification settings - Fork 69
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
Unable to deserialise a calendar response, due to unexpected types #251
Comments
Hi @sammyd I'd like to mention that we're operating with a reduced team at the moment, expect delays in responses, thank you for your patience! I'd also like to share that Ruby as a language for kiota and Microsoft Graph SDKs is currently NOT being funded, meaning that engineering availability to solve issues will be extremely limited even in "regular" periods, if any is available at all. Even if we receive contributions to address this particular issue, we're not in a position to make releases at this time. See #250 where the continuous integration is failing, because of other generation issues. You are correct, from a design perspective, this deserialization should be instead calling a parsing method, right now it seems to assume the property is "an object" instead of an enum. The question I have for you is: do you need this field in the application you're developing? |
Thanks for the reply @baywet—I appreciate it, including the context you were able to give about the status of this project. I didn't need it especially, so my monkey patch to ignore it was working pretty reasonably. However, I then came across a similar problem retrieving events (annoyingly I have forgotten the field, but this was relating to a At this point, I decided to cut my losses and implement the relatively small part of the graph API (just relating to calendars and events) as a standalone REST client. This is a shame, but ultimately I think the best approach for me right now. I had also had to fiddle around a fair amount (implementing the OAuthCustomFlow module methods) to get authentication to work with access/refresh tokens that I'd obtained through the omniauth based login flow that I already had. By this point, the monkey-patching code was approaching the same length of the relatively simple REST client that I needed myself. I'm using this gem in a different project to access Lists, and it is working pretty well there. It's a shame it's not being funded, it'd be great to have an easy-to-use gem with access to the whole of microsoft.graph, but I appreciate we can't have everything. Thanks for your help—let me know if there's anything I can do, otherwise feel free to close this. ta sam |
Thank you for the additional information. And for your understanding of the situation. We'll keep this issue open, for visibility for others and to track the issue in case this project gets funded again. |
Describe the bug
When trying to retrieve the calendars (or any calendar response) a deserialisation error occurs:
This occurs whilst trying to execute this line, parsing the
allowedOnlineMeetingProviders
field:https://github.com/microsoftgraph/msgraph-sdk-ruby/blob/main/lib/models/calendar.rb#L235
Expected behavior
It should parse the API response correctly, and not raise an error.
How to reproduce
client
, with access to presumably a minimum ofCalendars.Read
.SDK Version
0.22.2
Latest version known to work for scenario above?
No response
Known Workarounds
I've monkey patched this method to just comment out the offending line for now. It's not an acceptable workaround.
Debug output
Click to expand log
Configuration
No response
Other information
I'm reasonably confident that this is occurring because this line:
https://github.com/microsoftgraph/msgraph-sdk-ruby/blob/main/lib/models/calendar.rb#L235
Is expecting
MicrosoftGraph::Models::OnlineMeetingProviderType
to be something like aMicrosoftGraph::Models::Entity
, but actually, it's just aHash
:https://github.com/microsoftgraph/msgraph-sdk-ruby/blob/main/lib/models/online_meeting_provider_type.rb
I'm not entirely sure what to do about this, partially because I assume this should actually be a just returning some sort of array of symbols, but more importantly, I believe this gem is auto-generated by Kiota somehow?
I'm happy to put a PR in, but could do with some direction!
Or maybe I'm completely wrong—lemme know!
The text was updated successfully, but these errors were encountered: