Skip to content

Allow to use custom mapper on Enum#341

Merged
vietj merged 4 commits into
eclipse-vertx:masterfrom
Fyro-Ing:#295-retry
Oct 20, 2021
Merged

Allow to use custom mapper on Enum#341
vietj merged 4 commits into
eclipse-vertx:masterfrom
Fyro-Ing:#295-retry

Conversation

@Fyro-Ing

Copy link
Copy Markdown
Contributor

Allow to use custom mapper on Enum define with values parameters passed to a constructor

Fix #295

@vietj

vietj commented Oct 12, 2021

Copy link
Copy Markdown
Member

See also vert-x3/vertx-rx#235

@Fyro-Ing

Copy link
Copy Markdown
Contributor Author

ok, i will check that this week-end

cvgaviao and others added 3 commits October 16, 2021 16:38
Signed-off-by: Cristiano V. Gavião <cvgaviao@gmail.com>
Signed-off-by: Cristiano V. Gavião <cvgaviao@gmail.com>
@vietj

vietj commented Oct 18, 2021

Copy link
Copy Markdown
Member

@Fyro-Ing

I think we are missing a test to ensure that the JSON generated converters will use the mapper.

Please have a look at the src/converters/resources/META-INF/vertx/json-mappers.properties file and the TestDataObject which has a methodMapped property that uses a converter for a ZonedDateTime

We need the same for this new feature.

@vietj

vietj commented Oct 19, 2021

Copy link
Copy Markdown
Member

@Fyro-Ing can we get the missing test soon for Vert.x 4.2 release ?

@Fyro-Ing

Copy link
Copy Markdown
Contributor Author

I do it now

Signed-off-by: Fyro <Fyro-Ing@users.noreply.github.com>
@vietj vietj merged commit 6082252 into eclipse-vertx:master Oct 20, 2021
@vietj

vietj commented Oct 20, 2021

Copy link
Copy Markdown
Member

thanks for the contribution @Fyro-Ing @cvgaviao

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

An mapper specified for a Enum is not being considered by anotation processor

3 participants