Skip to content

docs(API): improve post /projects/{project_id}/keys/{id}/key_links documentation#1192

Merged
Stephen Lumenta (sbl) merged 7 commits into
mainfrom
devex-116-linked-keys-link-child-keys-to-a-parent-key-v2
Jun 26, 2026
Merged

docs(API): improve post /projects/{project_id}/keys/{id}/key_links documentation#1192
Stephen Lumenta (sbl) merged 7 commits into
mainfrom
devex-116-linked-keys-link-child-keys-to-a-parent-key-v2

Conversation

@sbl

Copy link
Copy Markdown
Contributor

Improves the documentation for post /projects/{project_id}/keys/{id}/key_links: 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.

Jira: DEVEX-116

🤖 Generated with Claude Code

@sbl Stephen Lumenta (sbl) added the developer-hub-api-quality API doc quality fix from the API Grader label Jun 15, 2026
@github-actions

github-actions Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

API changelog (oasdiff)

Doc-only edits (descriptions, examples) do not appear here.

No changes to report, but the specs are different.
Run 'oasdiff diff' to see structural differences.

@sbl Stephen Lumenta (sbl) changed the title feat(API): improve post /projects/{project_id}/keys/{id}/key_links documentation fix(API): improve post /projects/{project_id}/keys/{id}/key_links documentation Jun 17, 2026
Apply the same review conventions landed on the reviewed PRs in this batch:
- Remove the 'Errors:' enumeration from the top-level description; each
  status code already carries its own description on the response object.
- Drop the 'HTTP/1.1 201 Created' response trailer from the curl sample.
- Remove the endpoint-level security block (was overriding the global
  Token/Basic security with OAuth2 on just this operation, which oasdiff
  flagged and theSoenke flagged on the sibling screenshots PR).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@sbl Stephen Lumenta (sbl) changed the title fix(API): improve post /projects/{project_id}/keys/{id}/key_links documentation docs(API): improve post /projects/{project_id}/keys/{id}/key_links documentation Jun 17, 2026
Stephen Lumenta (sbl) and others added 3 commits June 24, 2026 09:09
Review feedback: error response descriptions should stay in the shared
responses.yaml for consistency, not be re-authored inline per operation.
Under OpenAPI 3.0 a description sibling of $ref is ignored anyway, so the
inline text never rendered. Strip the inline $ref-sibling response
descriptions (now bare $refs); the shared response owns the wording.
Genuinely custom (non-$ref) response bodies are left intact.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Comment thread paths/key_links/create.yaml Outdated
Address @jablan's review: the 201 response repeated a large inline example even
though the schema is already a `$ref` to `schemas/key_link.yaml#/key_link`. Move
the canonical example onto the shared schema so every operation that references
key_link (create, list, batch unlink) renders it without restating it, and drop
the now-redundant inline example from create.yaml.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Stephen Lumenta (sbl) added a commit that referenced this pull request Jun 25, 2026
Apply the same dedup as #1192/#1193: the list response repeated a large inline
example on top of the `$ref` to `schemas/key_link.yaml#/key_link`. Move the
canonical example onto the shared schema and drop the inline copy, so every
key_links operation renders one example through the `$ref`.

Note: #1192 makes the identical addition to schemas/key_link.yaml; whichever of
the two merges second will see a trivial add/add conflict on that file — keep one
copy of the example.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Regenerated from source with `swagger-cli bundle -t json -w 300 main.yaml`
(the exact command the lint/compare-output CI job runs), so the committed
bundle matches a fresh bundle of the deduped YAML. Fixes the compare-output
failure introduced by editing the source without rebundling.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Stephen Lumenta (sbl) added a commit that referenced this pull request Jun 25, 2026
Follow-up to @jablan's review: referencing the schema was only half of it — the
200 response still carried a large inline example that overrode the `$ref` and
duplicated the shared model (with off-convention slug-style ids). Drop the inline
example and put the canonical one on `schemas/key_link.yaml`, matching #1192 and
#1188, so create, list, and batch unlink all render one example through the ref.

Rebundled doc/compiled.json from source.

Note: #1192 and #1188 make the identical addition to schemas/key_link.yaml;
whichever of the three merges first wins and the others get a trivial add/add
conflict on that file — keep one copy of the example.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@sbl Stephen Lumenta (sbl) merged commit 845ac82 into main Jun 26, 2026
13 checks passed
@sbl Stephen Lumenta (sbl) deleted the devex-116-linked-keys-link-child-keys-to-a-parent-key-v2 branch June 26, 2026 10:57
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.

2 participants