-
Notifications
You must be signed in to change notification settings - Fork 764
Output curl --data in single quotes (instead of double quotes) #627
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
Output curl --data in single quotes (instead of double quotes) #627
Conversation
|
Thanks, that does look much better... I think this should be merged.. |
|
@ponelat, you may be right and I will gladly make that change if it helps getting this issue merged. |
|
OK done, @ponelat. I am confident my changes are ok. I've done lots of manual testing and Is that a known issue? |
|
Ugh... html diff'ing is no man's idea of fun... that needs to be resolved, so that we don't hinder PRs. |
|
This is where failing test comes from... 7f0f8c5...cbc1879 we need to drop raw html diffing, or at least add a clearer diff. |
|
yes, the html should be updated or just ignored for now. I need to get all this rendering out of the client asap. |
|
Seeing as the its just the html tests, failing... I'm happy to merge, @fehguy ? |
|
go for it |
Output curl --data in single quotes (instead of double quotes)
|
Thanks guys! |
|
@kwizzn thanks for the PR 😄 |
|
I thought about that too and I guess not. In fact, double quotes do not necessarily have to be escaped in a URL so we might be better off with single quote in this case, too. What do you guys think? |
|
we should escape all of 'em... no reason not to. Mind making the change, @kwizzn ? |
|
Happy to do it as soon as possible. |
We have a scenario where we have a "!" character inside our JSON request data:
Swagger's
asCurlmethod renders this as follows:bash now tries to interpret the "!" here, which results in this error:
-bash: !00: event not found.There's no way to escape "!" in double quotes so we suggest the following output:
Does the trick and is also much easier to read.
Would you accept this PR? It fixes the problem and updates the corresponding 2 tests.