Skip to content
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

Create empty collection when mapping JSON array to Java List/Set #3

Closed
joelittlejohn opened this issue Jun 23, 2013 · 3 comments
Closed

Comments

@joelittlejohn
Copy link
Owner

Original author: [email protected] (December 16, 2010 13:45:01)

"foo":{
"type":"array",
"items":{"type":"string"}
}

creates:

List<String> foo;

which then needs user-initialisation. I'd prefer:

List<String> foo = new ArrayList<String>();

Original issue: http://code.google.com/p/jsonschema2pojo/issues/detail?id=3

@joelittlejohn
Copy link
Owner Author

From [email protected] on December 23, 2010 19:22:10
Lowering priority since the builder methods added in issue #2 make this less of an inconvenience. Still on the radar though.

@joelittlejohn
Copy link
Owner Author

From [email protected] on February 22, 2011 11:56:29
Suggest this is wrapped up with changes for supporting the "default" schema rule and included in 0.1.7.

@joelittlejohn
Copy link
Owner Author

From [email protected] on February 24, 2011 10:06:14
Fixed (rbc91b532f3). Will be released in 0.1.7.

flibbertigibbet added a commit to flibbertigibbet/jsonschema2pojo that referenced this issue Jan 14, 2016
…n-uuids

Assign UUIDs to _localId fields, make final
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant