Repository navigation
openapi: openai/api, cloudflare/api-spec, mongodb/atlas-admin-spec; one version per day - #241
1 commit merged into
Conversation
…spec Three specs committed several times a day, versioned by the day: a spec read from its commits is now one version per day, at the day's last commit (Daily), for every commit-listed adapter, so no version ID is listed twice. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
|
Claude finished @adssib's task in 1m 37s —— View job ✅ Ready to merge: the three new sources have complete metadata, real golden and drop tests, and full provider pages; the Rules
BugsNone found. Things I checked that could have been bugs:
Verified
Non-blocking
Thanks, this is a careful PR: each filtering decision has a real example from the spec history behind it. |
| // Daily keeps one version per day of vs (oldest first, IDs dates, as | ||
| // versions.GitHubCommits lists them): the day's last commit, so a spec | ||
| // committed several times a day has one version per day, each ID once. | ||
| func Daily(vs []plugin.Version) []plugin.Version { |
There was a problem hiding this comment.
Non-blocking: Daily looks right to me. GitHubCommits and github.Commit both use the committer date in UTC, so the listed ID and Fetch's Version agree, and the duplicate IDs are always next to each other because the list is sorted.
One thing to check when this rolls out: Supabase, Neon, Convex, PlanetScale and Appwrite are already running. If patch-it's hosted ingestion service last stored a day with two commits by its ID, that ID now points at the day's last commit. If the stored ID came from an earlier commit that day, the commits after it on that day may never be diffed. This happens at most once per source and can only miss events, never produce wrong ones, so it fits "precision over recall". A sentence about it in the PR description would help whoever deploys this.
Small inconsistency: var _ Lister = OpenAI{} (line 294) sits here, while the Cloudflare and MongoDB assertions are in their own files. It could move to openai.go.
What this changes
Three new
openapisources, each read day by day from the spec's commits (every version, not only the newest), keeping operation deprecations and the removal of operations the previous day's spec had marked deprecated:openai/apipypi:openai,npm:openaiPOST /v1/audio/translationsdeprecated (shutdown Feb 26, 2027 quoted)cloudflare/api-specpypi:cloudflare,npm:cloudflarePOST /accounts/moveandGET /tenants/{tenant_id}gone unmarked: no eventmongodb/atlas-admin-specGET /rest/unauth/versiongone unmarked: no eventAlso: a spec read from its commits is now one version per day (
adapter.Daily, the day's last commit), for every commit-listed adapter (Supabase, Neon, Convex, PlanetScale, Appwrite too). Version IDs are dates, and several commits on one day listed the same ID more than once (Appwrite's saved listing: 40 commits on 16 days). Provider pages for those four say so now. The package doc ofplugins/openapino longer lists providers by hand.Part of #185 (I21.13 MongoDB, I21.18 Cloudflare) and #35 (I6.1 OpenAI); not closing them: their other sources are other kinds.
Checklist
make plugins).git commit -s, DCO)testdata/golden/openai-api.json,cloudflare-api-spec.json,mongodb-atlas-admin-spec.json)testdata/README.mdlists each file: URL, date fetched, license, quoteproviders/openai-api.md,providers/cloudflare-api-spec.md,providers/mongodb-atlas-admin-spec.mdwith Why this sourcecore/fetch/core/github(the adapter layer, as every openapi adapter)make checkpasses locallyCalls I made (please check)
cloudflare/api-spec, notcloudflare/api:cloudflare/apiis already the deprecations feed (kind notices).deprecationsOnly) for all three, as for Vercel/Supabase/Neon: these specs are regenerated several times a day and most removals and property changes aren't API changes. Precision over recall.Deprecated:or ending(deprecated)(11 operations) count, same rule as Vercel's.versions.MaxPages), about five months of Cloudflare's spec; noted on its page, not changed incore/versions.posthog/apiandplanetscale/api-live(live URLs only, no versions to list; the openapi kind is versioned),google/gemini-api(Discovery format: needs a Discovery→OpenAPI adapter),github/graphql-schema(GraphQL SDL: a new kind).anthropic/api: no public spec.Daily.Related PRs
🤖 Generated with Claude Code