Repository navigation
add the vercel plugin - #107
Conversation
Watches Vercel's REST API through the OpenAPI spec committed in vercel/sdk at each release tag. Emits operation deprecations (by the deprecated flag, or a summary starting "Deprecated:" or ending "(deprecated)") and removals of operations the previous spec had marked deprecated. Everything else is dropped: in the spec's history most removals and property changes weren't changes to the API. diff gains Options (PathTemplates, DeprecatedSummary) and ChangesWith; the zero value keeps Changes' behavior for the other openapi plugins. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: brandonphelps1212 <bphelps1212@gmail.com>
|
@claude review |
|
Claude finished @brandonphelps1212's task in 1m 3s —— View job ✅ Ready to mergeThanks @brandonphelps1212, this is a careful PR. The measured history in the notes (207 releases, 26 surviving events) makes the precision choices easy to check, and the two drop tests use real fixtures. I didn't find anything blocking.
Regression check on Blocking bugsNone. Non-blocking suggestions
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: brandonphelps1212 <bphelps1212@gmail.com>
What this changes
Adds the
vercelplugin on theopenapiformat plugin. Part of #66 (I10.3 · Watch Vercel), under #13.vercel-spec.jsonin vercel/sdk, pinned to each release tag. This is the spec@vercel/sdkis generated from, tagged on nearly every release. The newest tag comes from the GitHub Releases API. Each event'sversionis the SDK release (1.18.7), because the spec'sinfo.versionis a fixed0.0.1.deprecatedflag, or a summary starting "Deprecated:" or ending "(deprecated)". 16 of Vercel's 22 deprecations said it only in words.v1.18.6→v1.18.7removesGET /v4/domains/priceandGET /v4/domains/status. Vercel deprecated the Legacy Domains API in v1.13.5 and sunset it on 2025-11-09; both endpoints now answer "This endpoint has been sunsetted".diff/: newOptions(PathTemplates,DeprecatedSummary) andChangesWith. The zero value keepsChanges' behavior, so the other four openapi plugins are unaffected.Checklist
docs/plugins.md: newvercelrow. I compared the registered plugins with the table. Status ispaused(see notes).git commit -s, DCO)plugins/openapi/testdata/golden/vercel.json): the deprecation (v1.13.4→v1.13.5, run as a daily ingest), then the replayed removal.testdata/README.mdlists each file: URL, date fetched, license, quote. The saved copies are trimmed excerpts of the real specs, and every line matches the original.v1.6.2→v1.6.3, where/v1/log-drainsand two/v1/integrationsendpoints left the spec without being deprecated and later came back. A second drop test covers the{name}→{nameOrId}path-parameter rename inv1.28.65.providers/vercel.mdwritten fromproviders/_template.md, including Why this sourceenv.Get/kit/: the adapter uses the shared fetch layer underadapter/, like the Stripe, Datadog, GitHub and GitLab adapters.go build ./... && go vet ./... && gofmt -l . && go test -race ./...pass locally, and so doesscripts/leak_guard.py --all.Notes for the reviewer
Field-level changes are deliberately not reported. I measured them over all 207 releases (2024-11 to 2026-11):
With the filter, the history gives 26 events: 22 deprecations and the 4 Legacy Domains removals. Real field-level changes are missed; they're listed under Known gaps on the provider page.
Status
paused, notlive. The hosted ingestion service runs a plugin only once it's in a tagged release and the service is bumped to that release. Until then,livewould claim coverage that doesn't exist. After the tag and bump, the row needs flipping tolive.Small change to the other openapi plugins:
detected_atnow comes fromenv.Now().UTC()instead oftime.Now().UTC()inside normalize. In production it's the same clock; it makes the golden file deterministic.PathTemplatestrade-off, documented indiff/diff.go: a URL that keeps its shape but changes meaning (/teams/{teamId}→/teams/{slug}) reads as no change. That never happened in Vercel's history.Client side (patch-it, not this repo):
api_operation, so the existing handler takes them, with no new fix kind.@vercel/sdkis on npm).Follow-ups not in this PR:
ci_runtimeevents from Vercel's changelog: a separate plugin.🤖 Generated with Claude Code