Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Datetype plugin parameter/argument not working #471

Closed
swapdh opened this issue Dec 23, 2015 · 4 comments
Closed

Datetype plugin parameter/argument not working #471

swapdh opened this issue Dec 23, 2015 · 4 comments

Comments

@swapdh
Copy link

swapdh commented Dec 23, 2015

Hi,
I am trying to use dateType parameter to use java.time.LocalDate for dates but it doesn't work instead it creates a string type. I am using Java 8 and 0.4.18 version of jsonschema2pojo plugin.

I am not sure if I need to set another parameter or I am using wrong name.
I peeked in to source code and I didn't see Parameter set for dateType which I guess used JCommander to set parameters for GenerationConfig.

could you please advice, I really need to use java.time.LocalDate instead joda LocalDate.

Thanks.

@joelittlejohn
Copy link
Owner

Maybe @dmiorandi could offer some help here?

@dmiorandi
Copy link
Contributor

Hi @swapdh, I'm not using directly jsonschema2pojo but I'm using raml-jaxrs-maven-plugin that create an instance of org.jsonschema2pojo.DefaultGenerationConfig directly and it works, so core is ok.
Could be a specific cli issue.

Could you provide you cli command to check in same condition?

@joelittlejohn
Copy link
Owner

This should be fixed in 0.4.22 (it was fixed by #531).

@swapdh
Copy link
Author

swapdh commented Mar 30, 2016

Thanks Joe for fixing it. I had work around it earlier using
CustomRuleFactory.

On 29 March 2016 at 22:45, Joe Littlejohn notifications@github.com wrote:

This should be fixed in 0.4.22.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#471 (comment)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants