← Back to Pull requests

feat: update to Stripe API version 2026-11-18.endive #965

Open
unknown opened this pull request with 306 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 30, 2026 10:25 UTC
Author

What

Regenerates the library against stripe/openapi v2602 and moves the default Stripe-Version from 2025-11-17.clover to 2026-11-18.endive.

| | Before | After |
|---|---|---|
| Stripe API version | 2025-11-17.clover | 2026-11-18.endive |
| stripe/openapi | v2129 (Apr 2026) | v2602 (Nov 2026) |
| Generated modules | 162 | 371 |
| Spec | 380 paths / 1529 schemas | 398 / 1884 |

No generated modules were removed, so there are no breaking removals.

Why it drifted

The nightly stripe-codegen workflow has not produced a commit since April, for two independent reasons:

  • It ran on ubuntu-20.04, a retired runner label, so every scheduled run sat queued until the 24h limit cancelled it.

  • It still used ::set-output, which GitHub has disabled, so the check job could not have compared tags even on a live runner.
  • Both are fixed here, along with timeout-minutes so the next failure is loud, OTP 27 / Elixir 1.19 and stripe-mock v0.198.0 to match ci.yaml, and ad-m/github-push-action pinned to a SHA instead of @master.

    The workflow now also pins Stripe-Version from the spec's info.version. It only ever committed generated code, so that header drifted on its own.

    Generator changes

    The regeneration did not run clean; two changes were needed:

  • 26 new operation identities registered in @operation_identity_mapping (lib/openapi/phases/compile.ex). The generator raises on any operation missing from that map.

  • The new error schema is excluded in BuildModules. It is Stripe's API error envelope (StripeErrorResponse), carries no operations, and generated Stripe.Error, colliding with the hand-written lib/stripe/error.ex.
  • Verification

    mix test (364 tests, 0 failures), mix compile --warnings-as-errors, mix format --check-formatted, mix credo --strict, mix docs — all clean on Elixir 1.19.5 / OTP 27.1.

    ⚠️ stripe-mock 0.198.0 predates endive and routes 412 paths against the spec's 398, so endive-only surface area is not exercised. The green suite confirms nothing regressed, not that the new endpoints work.

    Note for reviewers

    feat: on the regeneration commit will make release-please cut 3.4.0. The default API version change is user-visible, so a patch seemed wrong — say the word if you'd rather it not cut a minor.

    🤖 Generated with Claude Code

    https://claude.ai/code/session_019YfnR6hoDdNkKgsm6kKNvN

    Diff: 306 lines (+229 / -77) across 3 files Reviewer: yordis Review duration: 473m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.40) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 306 lines diff across 3 files
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.343
    Real PR Conversation Timeline
    1 comments
    "Review active on #965"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 40.2% (MEDIUM) · Higher = larger blast radius
    40.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 21.4% · Safe to merge
    21.4%