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

Do not crash when User.Locale and UserInfo.Locale are an object #699

Merged
merged 3 commits into from
Jan 10, 2024

Conversation

frederikprijck
Copy link
Member

@frederikprijck frederikprijck commented Jan 9, 2024

Changes

Locale is undocumented, and can be a string or an object.
Currently, our SDK defines it as a string, failing deserialisation when an object is provided.

This PR ensures no exception is thrown and deserialization works, but the locale will be a stringified version of the object.

Testing

Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.

  • This change adds unit test coverage
  • This change adds integration test coverage
  • This change has been tested on the latest version of the platform/language or why not

Checklist

@frederikprijck frederikprijck enabled auto-merge (squash) January 10, 2024 12:47
@frederikprijck frederikprijck merged commit 5d6efd2 into master Jan 10, 2024
12 checks passed
@frederikprijck frederikprijck deleted the fix/locale branch January 10, 2024 12:49
@frederikprijck frederikprijck mentioned this pull request Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants