Skip to content

docs(api): refresh the v2 OpenAPI spec - #337

Merged
max-trunk merged 1 commit into
mainfrom
api/sync-v2-openapi-spec
Sep 16, 2026
Merged

max-trunk merged 1 commit into
mainfrom
api/sync-v2-openapi-spec

Conversation

@max-trunk

Copy link
Copy Markdown
Contributor

Re-syncs openapi-v2.json with the generated spec in trunk2 (ts/apps/public-api/openapi-v2.json). The published copy was a verbatim copy last taken at trunk2 2e4017940, so it predated five spec-touching commits.

What prompted it

trunk-io/trunk2#6021 reshapes what the test-case endpoints report:

  • Labelcolor and createdAt are gone; assignedAt and a sources[] array (label provenance, folded one entry per label rather than one per assignment) take their place. This is a breaking change to a published response.
  • ActiveMonitor — gains required activeSince.
  • TestCaseSummary — gains required statusSince (nullable), how long a test has been in its current status.

What rides along

The file is a verbatim copy, so the four intervening commits come with it:

  • a documented 403 INSUFFICIENT_PERMISSIONS response on GET /v2/test-cases and GET /v2/test-collections (and on the unpublished /v2/merge-queues, /v2/repositories)
  • paths-filter added to SignalType
  • a new /v2/dynamic-ci/generate-buildkite-plan path

None of the merge-queue or Dynamic CI additions reach the site: docs.json enumerates the seven flaky-tests operations it publishes, and those paths are not among them — same as before this change.

Not changed

No nav change (no new flaky-tests endpoints) and no prose change. The pages that mention label colors describe the Settings → Test Labels UI, where colors still exist; only the API response dropped the field.

🤖 Generated with Claude Code

The published copy was last synced at trunk2 2e4017940, so it predates
five spec changes. The one that prompted this is trunk-io/trunk2#6021,
which reshapes what the test-case endpoints report: `Label` drops
`color`/`createdAt` for `assignedAt` plus a `sources` array carrying
label provenance, `ActiveMonitor` gains `activeSince`, and
`TestCaseSummary` gains `statusSince`.

The rest rides along because the file is a verbatim copy of the
generated spec: a `403 INSUFFICIENT_PERMISSIONS` response on the list
endpoints, the `paths-filter` signal type, and a `generate-buildkite-plan`
path. None of those reach the site — docs.json enumerates the seven
flaky-tests operations it publishes, and the spec's merge-queue and
Dynamic CI paths are not among them.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@mintlify

mintlify Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
trunk 🟢 Ready View Preview Sep 16, 2026, 2:29 PM

@max-trunk
max-trunk merged commit 839351a into main Sep 16, 2026
2 checks passed
@max-trunk
max-trunk deleted the api/sync-v2-openapi-spec branch September 16, 2026 18:48
@mintlify

mintlify Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Docs PR opened: #341

Added a changelog post covering the v2 Test Cases API response updates, including label provenance changes and new monitor timestamps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants