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

Types are not respected in the mock endpoint req.body #26

Open
TSteele27 opened this issue Mar 30, 2016 · 0 comments
Open

Types are not respected in the mock endpoint req.body #26

TSteele27 opened this issue Mar 30, 2016 · 0 comments

Comments

@TSteele27
Copy link

If I mock an endpoint that takes an array of objects or string as a body param, when I get the body in the mock handler it is not what I am expecting. If I send an array I get a dictionary of the array in the body. If I send just a string, then I get nothing in the body param. Arrays and Strings are considered valid json and should be serialized and represented in the body parameter as they were passed in.

@TSteele27 TSteele27 changed the title Arrays are not arrays in the mock endpoint Types are not respected in the mock endpoint req.body Mar 30, 2016
@A A self-assigned this May 6, 2016
@A A removed their assignment Apr 9, 2020
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

2 participants