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

JSON array body instead of hash body in POST/PUT #141

Open
xliiauo opened this issue Aug 4, 2017 · 0 comments
Open

JSON array body instead of hash body in POST/PUT #141

xliiauo opened this issue Aug 4, 2017 · 0 comments

Comments

@xliiauo
Copy link

xliiauo commented Aug 4, 2017

Hi, I'm trying to test an api call with JSON array as the body:

post "/accounts/#{id}/subscriptions", body, header

For the body, it is a JSON array like ["12345", "23456"] instead of a hash. Can I do that in airborne?

Thank you very much.

rdalverny pushed a commit to rdalverny/airborne that referenced this issue Aug 4, 2017
Until now, the request body is only serialized if it's a Hash.
But it could be an Array, or any other serializable type,
and those bodies are serialized. See brooklynDev#129, probably brooklynDev#141 as well.

I am not sure if this wouldn't break use cases where
the body is already expected to be serialized.
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