Skip to content

feat(API): improve patch /projects/{project_id}/screenshots/{id} documentation#1167

Open
Stephen Lumenta (sbl) wants to merge 5 commits into
mainfrom
devex-115-screenshots-update-a-screenshot
Open

feat(API): improve patch /projects/{project_id}/screenshots/{id} documentation#1167
Stephen Lumenta (sbl) wants to merge 5 commits into
mainfrom
devex-115-screenshots-update-a-screenshot

Conversation

@sbl

Copy link
Copy Markdown
Contributor

Improves the documentation for patch /projects/{project_id}/screenshots/{id}: sharper descriptions, parameter docs, error responses, and usage examples.

Drafted with AI assistance and grounded in the API implementation. Please review for technical accuracy before merging; nothing is merged automatically.

@sbl Stephen Lumenta (sbl) added the developer-hub-api-quality API doc quality fix from the API Grader label Jun 10, 2026
Stephen Lumenta (sbl) and others added 3 commits June 10, 2026 13:57
Renaming an operationId changes generated client method and model
names in every SDK, which is a breaking change. The repo convention
is singular resource names for single-resource operations (plural
only for /list); the rename also broke client generation in CI.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…rt schema

The untitled multipart/form-data inline schema broke client generation:
the generator imports the operationId-derived model name while the
titled application/json schema generates under its own name, leaving a
missing symbol in the Java client. The update endpoint only meaningfully
accepts JSON (screenshot_update_params permits name and description
only), so the multipart block goes.

branch moves back into the request body to match main and every sibling
write endpoint; Rails merges query and body params, so the body shape
is the compatible, convention-consistent one. filename stays removed:
the controller does not permit it on update.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The compare-output CI job diffs the committed bundle against a fresh
swagger-cli compile, so spec changes must ship the regenerated bundle.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

developer-hub-api-quality API doc quality fix from the API Grader

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant