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

[fix] allow to override default json decoder on APIManager #71

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

cejanen
Copy link
Collaborator

@cejanen cejanen commented Jul 31, 2024

The original solution had default json encoder defined on APIManaging protocol and APIManager had not exposed this public variable so there was not a easy way to override default json decoder in APIManager subclasses.

I removed the default implementation on the protocol to force any APIManaging implementation to expose this variable.
At the same time I don't want change init method for APIManager - any child class can solve it with custom init or just override the public property

Copy link
Contributor

@gajddo00 gajddo00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍏

Copy link

@fiebiger fiebiger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@cejanen cejanen merged commit 4599172 into master Jul 31, 2024
4 checks passed
@cejanen cejanen deleted the fix/default-json-decoder branch July 31, 2024 14:41
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