Allow DataObject properties to be ignored by generated converter
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by locating the converter-generation path for @DataObject and how it processes properties, then compare the existing @JvmField behavior with the proposed @GenIgnore or @ConverterIgnore approach. The work is done when a language-independent annotation can exclude a DataObject property from generated conversion and the EnumSet example no longer causes generation to fail.
Written by the indexing model from the issue text.
Description
In certain circumstances it is desirable or necessary to omit a property from the generated converter.
For example, the following Kotlin DataObject will not compile successfully:
@DataObject(generateConverter = true)
class EnumSetDataObject() {
var enumSet: Set<MyEnum> = emptySet()
...
}
error: Could not generate element for io.vertx.example.EnumSetDataObject:
Illegal type ? extends io.vertx.example.MyEnum of kind WILDCARD
The desired effect (omitting enumSet from the converter) can be accomplished in Kotlin by using the @JvmField annotation, however, that is a language-specific solution.
I think that it would be useful to provide this functionality, either via the @GenIgnore annotation or a new @ConverterIgnore annotation.
- Dominant language
- Java
- Stars
- 111
- Forks
- 88
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from eclipse-vertx/vertx-codegen
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 15/100
eclipse-vertx/vertx-codegen#361 ·
-
help wanted
Difficulty 4/5 3-5 days Newbie friendliness 35/100
eclipse-vertx/vertx-codegen#340 · 11 comments · 2 reactions ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
eclipse-vertx/vertx-codegen#335 ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 25/100
eclipse-vertx/vertx-codegen#320 · 4 comments ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 45/100
eclipse-vertx/vertx-codegen#319 · 1 comment · 1 reaction ·
All issues in eclipse-vertx/vertx-codegen
Similar issues
-
[destination-snowflake] Custom domains rejected unlike source connectionsPossibly taken @kuza55 claimed this today. Openautoteam community connectors/destination/snowflake team/use
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
area-dashboard
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
component/operate kind/feature-request
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Forge coverage prompts carry text the agent cannot act onPossibly taken @graalvmbot claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
oracle/graalvm-reachability-metadata#10572 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
IBM/sample-app-mod#55 ·