Open
Description
This is being copied from the open source repo, PR 19442
(Automation in rest-schema label did not copy it over)
Schema Inaccuracy
- Go to any page showing a code sample (e.g. this page)
- Click on the "cURL" tab
- Copy the sample (either by clicking on the copy button, or selecting and copying the code sample)
- Paste the code sample in a terminal and run it
Expected
cURL command will run and return an error (e.g. bad credentials)
Actual
cURL command does not run properly and is split to 2 separate commands:
$ curl \
> -H "Accept: application/vnd.github+json" \
curl: (3) URL using bad/illegal format or missing URL
$ -H "Authorization: token <TOKEN>" \
> https://api.github.com/user/repository_invitations
-H: command not found
Metadata
Metadata
Assignees
Labels
No labels