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

refactor!: Replace deeply_nested_hash with options passing in struct ext #121

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

maxveldink
Copy link
Owner

After thinking on this for a few days, I think instead of registering a separate type of serialize here, we should set the precedent of being able to pass options to a serializer from here.

I don't love the unsafe call here (current limitation of Sorbet), but I think it's a fine trade off in order to be a bit more flexible here. I also am not forwarding options to all serializers by default, and not checking for cases where someone passes options that are invalid for the serializer: we'll just blow up.

@maxveldink maxveldink merged commit 48da547 into main Aug 5, 2024
5 checks passed
@maxveldink maxveldink deleted the mv/allow-options-in-struct-ext branch August 5, 2024 14:45
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.

1 participant