You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Schema Inaccuracy] pulls/list-files documents Markdown body fields absent from its response #7569
The List pull requests files endpoint describes four custom JSON media types that return body, body_text, or body_html. In the reproduction below, all four requested representations return an array of diff-entry objects with none of those fields.
This occurs on GitHub.com REST API versions 2022-11-28 and 2026-03-10. The operation description on main also promises these fields, although the 200 response schema references diff-entry. The same description appears in both calendar-version files and the OpenAPI 3.1 descriptions.
Expected
The operation description should accurately describe the representations returned by pulls/list-files.
Reproduction Steps
Run with Bash and jq. Repeat with version=2026-03-10 and per_page=76. Each URL is distinct to avoid cached variants, and the page sizes include both files.
All five requests return HTTP 200, two files, and body_fields: []. The selected API version and media-type response headers match each request. Parsed JSON is identical across all five Accept values in each run. On the same pull request, GET /repos/cli/cli/pulls/15180 with application/vnd.github.full+json returns all three body fields.
Activity