Skip to content
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

[Go] Return nil in the default case for enum parsing methods. #4646

Merged
merged 6 commits into from
May 13, 2024

Conversation

andrueastman
Copy link
Member

@andrueastman andrueastman commented May 13, 2024

Fixes #4621

This PR updates the enum parsing function generation to not throw on enums that are not part of the schema to avoid total failure in scenarios where the API evolves. Related to microsoftgraph/msgraph-beta-sdk-go#410

Generation changes validated with

Library parsing changes validate with microsoft/kiota-serialization-json-go#136

Copy link

sonarcloud bot commented May 13, 2024

@andrueastman andrueastman merged commit b375476 into main May 13, 2024
207 checks passed
@andrueastman andrueastman deleted the andrueastman/enumParsin branch May 13, 2024 13:07
@andrueastman andrueastman self-assigned this May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Generated enum parsing methods should return nil in the default case.
2 participants