Skip to content

[BUG] [Java] [vertx] Cannot configure PoolOptions in vertx 5 #23828

Closed

Description

@RickyRister

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator?
  • Have you tested with the latest master to confirm the issue still exists?
  • Have you searched for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description

When vertx transitioned from version 4 to 5, they split the http pool options out of the HttpClientOptions class and into a separate PoolOptions class. The PoolOptions is passed as a separate parameter into the WebClient factory method.

Currently, the vertx ApiClient's constructor only accepts a WebClientOptions config, meaning that when using vertx 5, it's impossible to configure the PoolOptions for the client.

openapi-generator version

7.22.0

OpenAPI declaration file content or url

The example generated client for vertx5 in the repo already shows the lack of PoolOptions configurability.

Generation Details

Run the generator for the vertx5 sample

Steps to reproduce
  1. Run generate-samples.sh
  2. Go to the generated sample code.
  3. Notice that the ApiClient doesn't support a way to pass a PoolOptions into the underlying WebClient
Related issues/PRs

Vertx 5 support was added in #23563

Suggest a fix

When the useVertx5 option is enabled, the ApiClient needs to have another constructor that has a param for the PoolOptions config, and the code in ApiClient needs to be updated to pass that config into its WebClient creation.

Activity

  1. wing328 commented on May 20, 2026

    @wing328
    Member

    thanks for reporting the issue

    do you mind filing a PR with the suggested fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions