Skip to content

[Schema Inaccuracy] GET /repos/{owner}/{repo}/compare/{basehead} spec is missing diff / patch response media types #6010

@rahulsom

Description

@rahulsom

Schema Inaccuracy

The description for that path talks about these media types, but the structured schema doesn't have them.

Expected

{
  /*...*/
  "paths": {
    /*...*/
    "/repos/{owner}/{repo}/compare/{basehead}": {
      "get": {
        "responses": {
          "200": {
            "content": {
              "application/json": {"...": "..."},
              "application/vnd.github.diff": {
                "schema": {
                  "type": "string"
                }
              },
              "application/vnd.github.patch": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}

Reproduction Steps

This applies to all variants:

  • fpt
  • ghec
  • ghes-*

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