Skip to content

Add OpenAPI spec-drift detector#8

Draft
andrewyu47 wants to merge 2 commits into
mainfrom
andrew-docs-drift-detector
Draft

Add OpenAPI spec-drift detector#8
andrewyu47 wants to merge 2 commits into
mainfrom
andrew-docs-drift-detector

Conversation

@andrewyu47
Copy link
Copy Markdown

@andrewyu47 andrewyu47 commented May 27, 2026

Umbrella PR (do not merge)

This PR has been split into a small reviewable stack. Marked Draft and kept open only to track the children below; it will be closed once they merge.

The OpenAPI spec-drift detector (the original 7-file change), split foundation -> consumers. Review/merge in order:

Coverage verified: the full stack (#9 -> #10 -> #11) reproduces this PR's diff exactly.

Flags affected docs.pinecone.io guide pages and impacted SDKs when an OpenAPI
spec changes, with breaking changes called out first. PR mode comments a
checklist on the PR; scheduled mode diffs the two newest version snapshots and
opens a draft PR in pinecone-io/docs. Breaking-change classification covers
removed/required-added params, type changes, removed properties/enums, and
removed operations. Pure Python stdlib + pyyaml.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@andrewyu47 andrewyu47 requested a review from austin-denoble May 29, 2026 22:55
@andrewyu47 andrewyu47 marked this pull request as ready for review May 29, 2026 22:55
…ion, removed response codes

Audit against the design's breaking-change rule table surfaced three rows
that weren't implemented or were misclassified:

- format changes (e.g. int32->int64, date->date-time) on params and schema
  properties are now flagged breaking (previously only type/$ref compared)
- parameter location change (e.g. query->path) is reported once as breaking
  instead of a misleading remove + add pair
- removed response codes are flagged breaking (responses were not diffed)

Adds 5 unit tests (11 total, all passing). On the real 2025-10 -> 2026-04
snapshot pair the detector now finds 33 changes / 5 breaking (was 30 / 2),
the extra items being genuine response-code removals and param changes.

Also dedups the breaking-changes section of the PR comment so a change
mapped to multiple guide pages is listed once.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant