fix invalid spec, update petstore samples (jaxrs, ruby)

This commit is contained in:
wing328
2017-01-19 16:54:16 +08:00
parent a8afaa8f77
commit 157fcbc4aa
24 changed files with 664 additions and 351 deletions

View File

@@ -2385,7 +2385,7 @@ public class DefaultCodegen {
// validation
// handle maximum, minimum properly for int/long by removing the trailing ".0"
if ("integer".equals(type)) {
if ("integer".equals(qp.getType())) {
p.maximum = qp.getMaximum() == null ? null : String.valueOf(qp.getMaximum().longValue());
p.minimum = qp.getMinimum() == null ? null : String.valueOf(qp.getMinimum().longValue());
} else {