Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Abstract data object support in params

Open
#80 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
java
Domain
tooling

Research direction

Start by tracing the code generator's handling of @DataObject parameters and how it reconstructs JsonObject values. Compare the proposed static AuthOptions.fromJson(JsonObject) entry point with current generated parameter handling. Done means abstract data-object parameters can be reconstructed from JSON for service proxies or configuration, with coverage for the AuthOptions example.

Written by the indexing model from the issue text.

Description

Data object params needs to be a plain class because it needs to be reconstructed from Json format (for example in JavaScript or Groovy). This is now not possible because the code generator will not know which data object to create.

We could work around this by having a static method fromJson returning an instance of that object that would be invoked by the generator, delegating the responsibility of creating the right instance to this method. This method could either use some hard coded mechanism or something else.

For example:

@DataObject
public abstract class AuthOptions {
  public static AuthOptions fromJson(JsonObject object) {
     ...
  }
}

This would allow for example the use of a common data object in service proxies or configuration.

Dominant language
Java
Stars
111
Forks
88
PR merge metrics
No merged PRs in 30d

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.

More from eclipse-vertx/vertx-codegen

All issues in eclipse-vertx/vertx-codegen

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.