@Override public DateSchema createProperty() { return new DateSchema(); } },
@Test(description = "it should serialize a DateProperty") public void serializeDateProperty() throws IOException { final DateSchema p = new DateSchema(); final String json = "{\"type\":\"string\",\"format\":\"date\"}"; assertEquals(m.writeValueAsString(p), json); }
props.put("intValue", new IntegerSchema()); props.put("longValue", new IntegerSchema().format("int64")); props.put("dateValue", new DateSchema()); props.put("dateTimeValue", new DateTimeSchema()); pet.setProperties(props);
@Override public DateSchema createProperty() { return new DateSchema(); } },
return new DateSchema();
return new DateSchema();
break; case "date": property = new DateSchema(); break; case "date-time":