Files
openapi-generator-original/docs/generators
Jules Ivanic dc4155051d [typescript-fetch] Add option to exclude RequestOpts from API interfaces (#23181)
* [typescript-fetch] Add withRequestOptsInInterface option to hide RequestOpts from API interfaces

The *RequestOpts methods are implementation details that build request
options before sending the fetch call. Most consumers using the API
interfaces don't need these methods exposed in the contract.

Add a new `withRequestOptsInInterface` boolean option (default: true
for backward compatibility) that controls whether *RequestOpts methods
appear in the generated API interface declarations. When set to false,
the methods remain as public methods on the class but are excluded from
the interface.

* Fix test: scope RequestOpts assertion to interface section

The previous test used indexOf("}") to find the interface end, which
matched the } inside @throws {RequiredError} JSDoc instead of the
actual closing brace. Use the class declaration position as the
boundary instead.

* Fix forbiddenapis violation: use explicit UTF-8 charset

Replace new String(byte[]) with new String(byte[], StandardCharsets.UTF_8)
to satisfy the forbiddenapis Maven plugin check.

* Add withRequestOptsInInterface to options test and regenerate docs
2026-03-10 12:21:42 +08:00
..
2024-02-23 16:27:26 +08:00
2024-02-23 16:27:26 +08:00
2024-02-23 16:27:26 +08:00
2024-02-23 16:27:26 +08:00
2024-02-23 16:27:26 +08:00
2025-12-22 16:09:33 +08:00
2025-11-23 17:19:16 +08:00
2025-01-11 15:44:42 +08:00
2023-12-13 16:13:31 +08:00
2024-04-24 23:50:14 +08:00
2024-01-10 11:50:48 +08:00
2024-10-05 17:08:14 +08:00

The following generators are available:

CLIENT generators

SERVER generators

DOCUMENTATION generators

SCHEMA generators

CONFIG generators