diff --git a/modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultCodegen.java b/modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultCodegen.java index f25f429f9cb..4072b5ca4a3 100644 --- a/modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultCodegen.java +++ b/modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultCodegen.java @@ -1705,6 +1705,7 @@ public CodegenProperty fromProperty(String name, Property p) { if (p instanceof IntegerProperty) { IntegerProperty sp = (IntegerProperty) p; property.isInteger = true; + property.isNumeric = true; if (sp.getEnum() != null) { List _enum = sp.getEnum(); property._enum = new ArrayList();