Skip to content

[Schema Inaccuracy] Fix media types in rest/gists/comments.md #1904

Open
@cmwilson21

Description

@cmwilson21

Transferring an OS PR over. - github/docs#22245

The media types seem to be wrong on the page https://docs.github.com/en/rest/gists/comments

To test the current ones, which seem to have no effect:

$ curl --silent -H "Accept: application/vnd.github.3.base64+json" https://api.github.com/gists/9257657/comments/1221189 | grep body 
  "body": "Thanks, Octocat!\n"

To test the new ones, which have an effect:

$ curl --silent -H "Accept: application/vnd.github.3.full+json" https://api.github.com/gists/9257657/comments/1221189 | grep body 
  "body_html": "<p dir=\"auto\">Thanks, Octocat!</p>",
  "body_text": "Thanks, Octocat!",
  "body": "Thanks, Octocat!\n"

Check off the following:

  • I have reviewed my changes in staging (look for the "Automatically generated comment" and click the links in the "Preview" column to view your latest changes).
  • For content changes, I have completed the self-review checklist.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions