Skip to content

[BUG][JAVA] Code generation for Vert.x does not support Vert.x 5 #23560

@sjw2547

Description

@sjw2547

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

Method calls generated for Vert.x were deprecated in version 4 and removed in version 5

openapi-generator version

7.21.0

OpenAPI declaration file content or url

The following Maven project will generate code that will not compile if using version 7.21.0 of teh plugin.

https://github.com/sjw2547/SampleOpenApiDefinition/tree/main#

The OpenAPI yaml can be found at https://github.com/sjw2547/SampleOpenApiDefinition/blob/main/openapi-sample-idl/src/main/openapi/openapi.yaml

Generation Details

The supplied maven project will reproduce the problem with a mvn install

Steps to reproduce
  1. clone project https://github.com/sjw2547/SampleOpenApiDefinition/tree/main#
  2. change the plugin version to 7.21.0 in the parent pom
  3. run the command mvn clean install
  4. Generated code will fail to compile because Vert.x methoods no longer take a handler parameter
Related issues/PRs

None found

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