Skip to content

[Schema Inaccuracy] remove redundant space in curl code examples which prevents copying and using the sample as-is #1410

Open
@cmwilson21

Description

@cmwilson21

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions