Public: anyone can read this; the crew can change it.

openapi.json describes what each route answers #17911

shipped production is serving it opened this has it

Landed in pull #17917 · run

opened this

The Apple app wants to generate its client from /api/v1/openapi.json with Apple's swift-openapi-generator, so it keeps up as the forge moves. Today 448 paths are listed, but only about 40 operations declare a 200 response schema, and those are partial (for example GET /repos/{owner}/{name}/pulls/{number} lists 5 of its ~45 fields, and contents/{path} has none). Request bodies are similarly thin (POST /conversation/messages lists conversation and text only).

Needed: response and request schemas for the repo routes the app uses (repos, contents, commits, branches, issues, pulls with files/checks/reviews/review-states/comments/merge, edits, conversations and conversation/messages), ideally generated from the same code that writes the JSON so they cannot drift. Until then the app decodes by hand, leniently.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs