Skip to content

Update generated code for beta - #2279

Open
stripe-openapi[bot] wants to merge 5 commits into
betafrom
latest-codegen-beta
Open

Update generated code for beta#2279
stripe-openapi[bot] wants to merge 5 commits into
betafrom
latest-codegen-beta

Conversation

@stripe-openapi

@stripe-openapi stripe-openapi Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Codegen for openapi v2459 and v2 openapi e2d3e8255ba431b6d05e4a423941a157e947e763.

Changelog

  • Release specs are identical.

@stripe-openapi
stripe-openapi Bot requested a review from a team as a code owner August 27, 2026 08:09
@stripe-openapi
stripe-openapi Bot requested review from justiny-stripe and removed request for a team and justiny-stripe August 27, 2026 08:09
@stripe-openapi
stripe-openapi Bot enabled auto-merge August 27, 2026 08:09
@stripe-openapi
stripe-openapi Bot force-pushed the latest-codegen-beta branch 8 times, most recently from f3751f4 to 8264e81 Compare August 27, 2026 22:27
* Add discriminated union serialization tests

Tests both request-side (params → map) and response-side (JSON → object)
serialization for discriminated unions, covering standalone and inline
variants.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Committed-By-Agent: claude

* Add null assertions for non-selected DU variants

Assert that when one variant is selected, the other variant fields/structs
remain null in both serialization and deserialization tests.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Committed-By-Agent: claude

* Fix response standalone DU test to use proper class hierarchy

Restructure the response-side test fixtures from a flat TestColorEntity
class (holding all variant fields) to a proper class hierarchy:
TestColorEntity (base) -> TestRgbColorEntity / TestHsvColorEntity.

Add a TestColorTypeAdapterFactory that dispatches deserialization to the
correct subclass based on the `model` discriminator field, mirroring how
the codegen will emit TypeAdapterFactory-based dispatch for real DUs.

Update assertions to use instanceof checks and typed casts rather than
checking for null fields on a flat class. Add a second test covering the
HSV variant path.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Committed-By-Agent: claude

* fixed formatting

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
@stripe-openapi
stripe-openapi Bot force-pushed the latest-codegen-beta branch from 8264e81 to 613949f Compare August 28, 2026 17:12
private-preview's ci.yml differs from master's by exactly two additive
hunks: `private-preview` in `on.push.branches`, and a `base:` input on the
stripe-mock step mapping every private-preview context onto the beta spec.

Because those hunks live only on private-preview, every merge of master into
private-preview yields a ci.yml matching neither parent. GitHub refuses a
push from a GitHub App lacking `workflows` permission when it introduces a
workflow blob that does not already exist in the repository, so the codegen
job's push is rejected and a human has to perform the merge by hand. Holding
the hunks on master too means both sides of the merge carry the same change,
the merge result is byte-identical to master's blob, and the App only ever
carries an already-committed file forward.

Both hunks are no-ops on master:

- For a push event the workflow file comes from the pushed ref, so master's
  copy listing private-preview cannot affect pushes to master or beta.
- The base: expression falls through to `github.base_ref || github.ref_name`
  for every master-side ref, which is character-identical to the default
  declared by stripe/openapi/actions/stripe-mock.

Committed-By-Agent: claude
@stripe-openapi
stripe-openapi Bot force-pushed the latest-codegen-beta branch 10 times, most recently from 17f4109 to eebfb8d Compare August 31, 2026 20:50
* validate that incoming urls don't redirect requests

* shorten comments
@stripe-openapi
stripe-openapi Bot force-pushed the latest-codegen-beta branch 2 times, most recently from d2d68a5 to 7ed33da Compare August 31, 2026 22:46
@stripe-openapi
stripe-openapi Bot force-pushed the latest-codegen-beta branch 4 times, most recently from 7fa52e4 to e94eff4 Compare September 3, 2026 03:23
@stripe-openapi
stripe-openapi Bot force-pushed the latest-codegen-beta branch from e94eff4 to acc0e10 Compare September 3, 2026 03:44
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.

3 participants