OpenAPITools / OpenAPITools/openapi-generator

[BUG] java-vertx-web uses internal HttpStatusException vertx class

Open
#10,298 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue: Bug
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

The vertx generator is using io.vertx.ext.web.handler.impl.HttpStatusException in each method default implementation.

example:

import io.vertx.ext.web.handler.impl.HttpStatusException;

import java.util.List;
import java.util.Map;

// Implement this class

public class BusinessApiImpl implements BusinessApi {
    public Future<ApiResponse<Void>> deleteCompanyId(String q, Integer id) {
        return Future.failedFuture(new HttpStatusException(501));
    }

This class was internal: Since vertx 4.1 this class is part of vertx official API and has changed to io.vertx.ext.web.handler.HttpException, code generated with java-vertx-web is uncompilable in the stable vertx versions.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the java-vertx-web generator template that emits the default method implementation and search for HttpStatusException references. Update the generated output to use the stable Vert.x HttpException API, then verify that generated Java compiles against stable Vert.x versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend-api-design, devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.