null out the string null in examples. Rebuilt java clients and made a whole bunch of changes

This commit is contained in:
Tony Tam
2017-03-10 11:07:30 -08:00
parent 3ff4c988b8
commit 0dcd91adbf
260 changed files with 756 additions and 753 deletions

View File

@@ -1481,7 +1481,10 @@ public class DefaultCodegen {
property.title = p.getTitle();
property.getter = "get" + getterAndSetterCapitalize(name);
property.setter = "set" + getterAndSetterCapitalize(name);
property.example = toExampleValue(p);
String example = toExampleValue(p);
if(!"null".equals(example)) {
property.example = example;
}
property.defaultValue = toDefaultValue(p);
property.defaultValueWithParam = toDefaultValueWithParam(name, p);
property.jsonSchema = Json.pretty(p);