Merge pull request #4421 from wing328/fix_isfile_boolean

Fix `isPrimitiveType` for file property
This commit is contained in:
wing328
2016-12-20 15:48:55 +08:00
committed by GitHub
6 changed files with 43 additions and 38 deletions

View File

@@ -3309,7 +3309,8 @@ public class DefaultCodegen {
parameter.isPrimitiveType = true;
} else if (Boolean.TRUE.equals(property.isFile)) {
parameter.isFile = true;
parameter.isPrimitiveType = true;
// file is *not* a primitive type
//parameter.isPrimitiveType = true;
} else if (Boolean.TRUE.equals(property.isDate)) {
parameter.isDate = true;
parameter.isPrimitiveType = true;