Skip to content

Revert "Add create requestOpts method to {{classname}}Interface #21708"#22814

Merged
macjohnny merged 1 commit intomasterfrom
revert-21709-generate-request-config-typescript-fetch
Jan 26, 2026
Merged

Revert "Add create requestOpts method to {{classname}}Interface #21708"#22814
macjohnny merged 1 commit intomasterfrom
revert-21709-generate-request-config-typescript-fetch

Conversation

@macjohnny
Copy link
Member

@macjohnny macjohnny commented Jan 26, 2026

Reverts #21709


Summary by cubic

Reverts the addition of RequestOpts builder methods in the typescript-fetch generator and restores the previous API that executes requests via Raw/typed methods. This removes {{nickname}}RequestOpts from interfaces and clients and updates templates and samples to the prior behavior.

  • Refactors

    • Removed {{nickname}}RequestOpts from {{classname}}Interface and generated API classes.
    • Restored {{nickname}}Raw methods to send requests and return runtime.ApiResponse.
    • Updated typescript-fetch apis.mustache and all petstore samples to match the previous API.
  • Migration

    • Replace calls to XRequestOpts(...) with XRaw(...), passing initOverrides to customize RequestInit.
    • Use typed methods (e.g., X(...)) if you don’t need the raw response.

Written for commit 5b97b9a. Summary will update on new commits.

@macjohnny macjohnny merged commit 67cbfb3 into master Jan 26, 2026
19 of 21 checks passed
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 49 files

kingofdisasterr pushed a commit to kingofdisasterr/openapi-generator that referenced this pull request Jan 27, 2026
@wing328 wing328 added this to the 7.20.0 milestone Feb 15, 2026
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.

2 participants