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

cleanup JSON conversion for all data types #164

Open
wants to merge 2 commits into
base: kylel/2022-10/relation
Choose a base branch
from

Conversation

kyleclo
Copy link
Collaborator

@kyleclo kyleclo commented Oct 14, 2022

Noticed JSON serialization had inconsistent behavior across various data types, especially in cases where certain fields were empty or None.

This PR adds a set of comprehensive tests in tests/test_types/test_json_conversion.py that documents these behaviors. PR also includes resolving inconsistencies. For example, now Metadata that's attached to a SpanGroup or BoxGroup won't get accidentally serialized as an empty dictionary.

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.

3 participants