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

Add extension removal methods #115

Open
jisantuc opened this issue Jun 25, 2020 · 0 comments
Open

Add extension removal methods #115

jisantuc opened this issue Jun 25, 2020 · 0 comments

Comments

@jisantuc
Copy link
Contributor

With the FooExtension typeclasses it's very easy to add extensions. However sometimes it would be useful to be able efficiently to remove extensions. For example, in Franklin, items are validated on serialization on all of the endpoints off of collections. As a result the returned items are never going to be equal to the items a user posts. It would be nice to have a one-liner to remove the validation extension fields. Another possibility is that a user has created a halfway invalid label item and rather than try to edit a few things would rather just delete the existing extension info and start over. This shouldn't be that difficult and I think could substantially improve downstream tests.

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

No branches or pull requests

1 participant