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

Fix dumping JSON with enum values as dict keys #1957

Merged
merged 1 commit into from
Aug 10, 2024

Conversation

davfsa
Copy link
Member

@davfsa davfsa commented Jul 6, 2024

Summary

Not the ideal way I would like to fix it, but it looks like orjson doesn't want to add support for enums because "would be too confusing" (even tho the fact that it doesn't work is more confusing)

See all the issues opened through the years https://github.com/ijl/orjson/issues?q=str+enum

Checklist

  • I have run nox and all the pipelines have passed.
  • I have made unittests according to the code I have added/modified/deleted.

Related issues

Closes #1955

@davfsa davfsa added the bug Something isn't working label Jul 6, 2024
@davfsa
Copy link
Member Author

davfsa commented Jul 6, 2024

If anybody knows a nicer fix for this, please do comment here!

@davfsa davfsa merged commit e96d8c0 into hikari-py:master Aug 10, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Passing localization dicts with hikari.Locale keys fails
1 participant