Closed SirSpidey closed 4 years ago
Can you use '
rather than "
?
curl -k -X PUT -H "Authorization: Bearer {token}" -H "cache-control: no-cache" -d '{ "description": "{role_description}", "permissions": "{permissions} "}' 'https://{cpd_cluster_host}{:port}/icp4d-api/v1/roles/{role_name}'
We use this syntax (and have for a while) so that it works on both Linux-based and Windows OSs. Tools should support what we want to document, not the other way around ;-)
So you are saying that my example doesn't work in Windows?
I'm saying that your issue is separate from this issue: that the tool doesn't fully support encoded examples.
I was just suggesting a better way to do the examples that will solve the problem
:tada: This issue has been resolved in version 0.5.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
Describe the bug The first backslash
\
of a request example is stripped and cannot be added. I think it is stripped as soon as the file is opened in the editor, rendering all those examples incorrect.To Reproduce Steps to reproduce the behavior:
Note that the
description
in the-d
payload is escaped.\
. You can'tExpected behavior escaped characters are left as is
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):