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

Have addEncoder/addDecoder skip if handler already exist, like legacy addHandler #46

Closed
simonbasle opened this issue Feb 16, 2017 · 0 comments
Assignees
Labels
type/bug A general bug type/enhancement A general enhancement
Milestone

Comments

@simonbasle
Copy link
Member

addHandler used to check if there was an existing handler with the provided name, and skip the addition of the new handler if that was the case.
Since the move to addEncoder/addDecoder, this is no longer the case.

This should be fixed, for a minimum consistency with the previous API (even though the methods don't add at the same position as before).

Note that this is the inverse of #22 which would introduce a way of replacing instead of skipping.

@simonbasle simonbasle added type/bug A general bug type/enhancement A general enhancement labels Feb 16, 2017
@simonbasle simonbasle added this to the 0.6.1.RELEASE milestone Feb 16, 2017
@simonbasle simonbasle self-assigned this Feb 16, 2017
simonbasle added a commit that referenced this issue Feb 17, 2017
This doesn't completely fix the issue as addHandler old behavior would
ignore the extractor and having an extractor breaks
JsonObjectDecoder...
simonbasle added a commit that referenced this issue Feb 20, 2017
This doesn't completely fix the issue as addHandler old behavior would
ignore the extractor and having an extractor breaks
JsonObjectDecoder...
simonbasle added a commit that referenced this issue Feb 20, 2017
This is still not 100% equivalent to addHandler, which wouldn't add
an extractor... See #49 for a problem with the extractor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug A general bug type/enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant