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 Kakapo to not be json centric WIP #154

Open
wants to merge 1 commit into
base: feature/serializationSubspec
Choose a base branch
from

Conversation

MP0w
Copy link
Member

@MP0w MP0w commented Mar 19, 2017

This is a draft PR to address #153, I want some feedback before proceeding with updating the documentation, README, tests
The idea is that Router now doesn’t work anymore w/ Serializable objects and ResponseFieldsProvider is not anymore a special Serializable.
Router now only accept ResponseFieldsProviders an object that provides:
statusCode (Int)
headerfields (dict)
body (data)

Serializable became a ResponseFieldsProvider that by default has a status code == 200 and “Content-Type” == “application/json”.
It should have been like that since ever, so we can use Kakapo with images, xml or whatever we want by creating new ResponseFieldsProvider

The change is a breaking change but not a big one for users of Kakapo (only objects that were confirming to ResponseFieldsProvider will be broken)

This is a draft PR to address #153, I want some feedback before proceeding with updating the documentation, README, tests
The idea is that Router now doesn’t work anymore w/ `Serializable` objects and `ResponseFieldsProvider` is not anymore a special `Serializable`.
Router now only accept `ResponseFieldsProvider`s an object that provides:
statusCode (Int)
headerfields (dict)
body (data)

`Serializable` became a `ResponseFieldsProvider` that by default has a status code == 200 and “Content-Type” == “application/json”.
It should have been like that since ever, so we can use Kakapo with images, xml or whatever we want by creating new `ResponseFieldsProvider `

The change is a breaking change but not a big one for users of Kakapo (only objects that were confirming to ResponseFieldsProvider will be broken)
@MP0w MP0w requested a review from joanromano March 19, 2017 11:48
@MP0w
Copy link
Member Author

MP0w commented Mar 19, 2017

@zzarcon might be interesting also for Kakapo.js 🤷‍♂️

@devluckybot
Copy link

1 Error
🚫 Any changes to library code need a summary in the Changelog.

Generated by 🚫 Danger

@tflhyl
Copy link

tflhyl commented Oct 21, 2017

+1 for this cos we need to use this to mock binary protobuf response. any updates?

@zzarcon
Copy link
Member

zzarcon commented Dec 1, 2017

@MP0w can you give us an update on this? is the project dead? 😢

@gomera
Copy link

gomera commented Mar 22, 2018

hey @MP0w, same as @zzarcon, is the project dead ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants