Replies: 1 comment
-
|
Okay my problem was resolved by removing the encodeURI call in my mock setup and adding the feature But I've still the question what URI encoding function zodios is using!? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I ran into a problem while testing my application.
I mocked one backend endpoint my application is talking with.
But the query parameters of my mock call are different to the encoded query parameter of zodios.
Can somebody explain how the escaping works there?:
apiDocumentation:
Now I'm calling the endpoint:
The mock works similar, but there I have to to the uri escape:
But the encoded Strings differs:
mock: %7B%22ordering%22:null,%22conditions%22:%5B%5B%22_id%22,%22Equals%22,%22some-id%22%5D%5D,%22pagination%22:null%7D
zodios: %7B%22ordering%22:null,%22conditions%22:[[%22_id%22,%22Equals%22,%22some-id%22]],%22pagination%22:null%7D
Can you explain how the escaping of zodios work and how I can archive the same encoding in my tests ?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions