[2.0 Spec] Java generator: Implement Enums #287

Very basic implementation
This commit is contained in:
Martin Ehrnhoefer 2014-10-01 17:10:26 +02:00
parent 3971bbf334
commit a80af33260

View File

@ -452,7 +452,7 @@ public class DefaultCodegen {
}
property.datatype = property.isEnum
? StringUtils.capitalize(getTypeDeclaration(p)) + "Enum"
? StringUtils.capitalize(property.name) + "Enum"
: getTypeDeclaration(p);
property.baseType = getSwaggerType(p);