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

updated templates for pojos, enums #1790

Merged
merged 5 commits into from
Dec 31, 2015
Merged

updated templates for pojos, enums #1790

merged 5 commits into from
Dec 31, 2015

Conversation

fehguy
Copy link
Contributor

@fehguy fehguy commented Dec 30, 2015

fixes #1789

@fehguy fehguy added this to the v2.1.5 milestone Dec 30, 2015
fehguy added a commit that referenced this pull request Dec 31, 2015
updated templates for pojos, enums
@fehguy fehguy merged commit 0c12971 into master Dec 31, 2015
@fehguy fehguy deleted the issue-1789 branch December 31, 2015 03:49
@naveen237
Copy link

Can we update the enum templates to generate java code properly for empty strings ?
If we have a enum with string values like this in my YAML:
Type:
description: Type of parameter.
type: string
enum: ["","String","boolean","Date","integer","decimal"]

The generated classes will have something like this::

public enum TypeEnum {
(""),
STRING("String"),
BOOLEAN("boolean"),
DATE("Date"),
INTEGER("integer"),
DECIMAL("decimal");

which wont compile. I think its a valid usecase and needs to be addressed

@fehguy
Copy link
Contributor Author

fehguy commented Jan 13, 2016

Yes you are correct. Will address that.

@naveen237
Copy link

Could you tell me whats the targeted release for the change ?

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.

update java-based codegens
2 participants