use of io.swagger.v3.oas.models.media.DateTimeSchema in project swagger-core by swagger-api.
the class PropertySerializationTest method serializeDateTimeProperty.
@Test(description = "it should serialize a DateTimeProperty")
public void serializeDateTimeProperty() throws IOException {
final DateTimeSchema p = new DateTimeSchema();
final String json = "{\"type\":\"string\",\"format\":\"date-time\"}";
assertEquals(m.writeValueAsString(p), json);
}
Aggregations