-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #295 #325
Fix #295 #325
Conversation
Signed-off-by: Cristiano V. Gavião <[email protected]>
can you remove those extra commits for NPE so we can review only the new feature and then we will examine the commits that fix potential NPE |
done |
|
||
/**MyEnumWithCustomConstructor doc*/ | ||
@VertxGen | ||
public enum MyEnumWithCustomConstructor { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should be renamed with XXXWithCustomFactory
because constructor has a very specific meaning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, I did the required changes... :D
But it is really called an enum constructor, not a factory :)
Look here: https://docs.oracle.com/javase/tutorial/java/javaOO/enum.html
import io.vertx.core.json.JsonObject; | ||
|
||
@DataObject(generateConverter = true, publicConverter = true) | ||
public class DataObjectWithEnumWithMapper { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DataObjectWithMappedEnum
src/test/java/io/vertx/test/codegen/testapi/jsonmapper/WithMyCustomEnumWithMapper.java
Show resolved
Hide resolved
A couple comments have been made to rename things more consistently. |
Signed-off-by: Cristiano V. Gavião <[email protected]>
I think we need also then to update the |
@cvgaviao can you update the index.adoc and readme files with the changes brought the to model ? |
How can we help to get this feature ? |
this PR is missing update to documentation as said in my last comment, if you can contribute it it is fine |
Update files here Fyro-Ing@1939916 if @cvgaviao can't merge in few days, i'll do a PR directly Note : Readme updated to conform with json-mappers.properties, not |
thanks!
…On Mon, Sep 13, 2021 at 6:39 PM Fyro ***@***.***> wrote:
Update files here ***@***.***
<Fyro-Ing@1939916>
if @cvgaviao <https://github.com/cvgaviao> can't merge in few days, i'll
do a PR directly
Note : Readme updated to conform with json-mappers.properties, not @Mapper
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#325 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABXDCTI3FHAOGPF5P7KBSTUBYSMRANCNFSM4ZJFYOSQ>
.
|
@Fyro-Ing, you can do that. ;)
|
new PR #341 |
merged with new PR. |
Signed-off-by: Cristiano V. Gavião [email protected]
Motivation:
Allows the developer to have enum in their data classes that need to convert from and to JSON.
#295