Date type should not include time (#4385)

Removed time section from Date type in example generators.

Issue #4359
This commit is contained in:
Bruno Santos
2016-12-13 22:51:14 -05:00
committed by wing328
parent 4fa3595a41
commit 90cf1cab53
2 changed files with 2 additions and 2 deletions

View File

@@ -93,7 +93,7 @@ public class ExampleGenerator {
};
}
} else if (property instanceof DateProperty) {
return "2000-01-23T04:56:07.000+00:00";
return "2000-01-23";
} else if (property instanceof DateTimeProperty) {
return "2000-01-23T04:56:07.000+00:00";
} else if (property instanceof DecimalProperty) {

View File

@@ -180,7 +180,7 @@ public class XmlExampleGenerator {
if (property.getExample() != null) {
return property.getExample().toString();
} else {
return "2000-01-23T04:56:07.000Z";
return "2000-01-23";
}
} else if (property instanceof IntegerProperty) {
if (property.getExample() != null) {