Skip to content

[Schema Inaccuracy] From Docs OS - Fix curl request in rest code samples #2737

@cmwilson21

Description

@cmwilson21

👋 Hey folks, received this in Docs OS repo so am transferring it over here. Let me know if it should be reviewed elsewhere.

Original issue here

cc @pietervdheijden

Code of Conduct

What article on docs.github.com is affected?

All rest articles containing code samples with header X-GitHub-Api-Version. For example:

What part(s) of the article would you like to see updated?

Line:

-H "Authorization: Bearer <YOUR-TOKEN>"\

Doesn't have a space between " and \. As a result, the cURL request does not work correctly.

To fix this, the line should be replaced by:

-H "Authorization: Bearer <YOUR-TOKEN>" \

Additional information

image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions