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

feat(HitsInteractor): ability to set a custom json decoder to hits interactor #254

Merged
merged 2 commits into from
Sep 29, 2022

Conversation

VladislavFitz
Copy link
Contributor

Summary

Currently HitsInteractor supports only the camel case case since it uses the default JSONDecoder constructor, so the client might add CodingKeys per model to support snake case.

Result

HitsInteractor provides jsonDecoder property which can be set in the initialiser or as property, so it's possible to set a custom decoder for hits.

Fix #247

@VladislavFitz VladislavFitz merged commit 91628d7 into master Sep 29, 2022
@VladislavFitz VladislavFitz deleted the feat/custom-hits-decoder branch October 17, 2022 10: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.

Add custom JSONDecoder property to HitsInteractor
2 participants