You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment, enum parsing functions are generated with the default case returning an error. This causes failure of parsing the entire payload in such scenarios where the API is updated. To be more lenient and align with other languages, the parsing methods should return nil rather than throwing an error.
What are you generating using Kiota, clients or plugins?
API Client/SDK
In what context or format are you using Kiota?
Source Build
Client library/SDK language
Go
Describe the bug
Related to microsoftgraph/msgraph-beta-sdk-go#410 and microsoft/kiota-dotnet#277
At the moment, enum parsing functions are generated with the default case returning an error. This causes failure of parsing the entire payload in such scenarios where the API is updated. To be more lenient and align with other languages, the parsing methods should return nil rather than throwing an error.
Expected behavior
Return nil for the default case.
we could make the change on the parsing side without causing a breaking change since:
the parsing methods already return a pointer
the parse node interface returns any, which can be nil
How to reproduce
Make a request to a an api that returns an undocumented enum member, error is thrown preventing the parsing of the entire payload.
Open API description file
No response
Kiota Version
main
Latest Kiota version known to work for scenario above?(Not required)
No response
Known Workarounds
No response
Configuration
all
Debug output
Click to expand log
```The text was updated successfully, but these errors were encountered: