remove incorrect max, min in allowableValues (#269)

This commit is contained in:
William Cheng
2018-04-30 23:48:59 +08:00
committed by GitHub
parent be19724849
commit 9cb2f8472f
9 changed files with 63 additions and 91 deletions

View File

@@ -1664,12 +1664,6 @@ public class DefaultCodegen implements CodegenConfig {
// legacy support
Map<String, Object> allowableValues = new HashMap<String, Object>();
if (p.getMinimum() != null) {
allowableValues.put("min", p.getMinimum());
}
if (p.getMaximum() != null) {
allowableValues.put("max", p.getMaximum());
}
if (p.getEnum() != null) {
List<Object> _enum = p.getEnum();