use of io.swagger.v3.oas.models.media.ByteArraySchema in project swagger-core by swagger-api.
the class ByteConverterTest method testByteProperty.
@Test
public void testByteProperty() {
Schema model = new Schema().addProperties("byteProperty", new ByteArraySchema());
assertEquals(Json.pretty(model), "{" + NEWLINE + " \"properties\" : {" + NEWLINE + " \"byteProperty\" : {" + NEWLINE + " \"type\" : \"string\"," + NEWLINE + " \"format\" : \"byte\"" + NEWLINE + " }" + NEWLINE + " }" + NEWLINE + "}");
}
Aggregations