Search in sources :

Example 1 with ByteArraySchema

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 + "}");
}
Also used : ByteArraySchema(io.swagger.v3.oas.models.media.ByteArraySchema) BinarySchema(io.swagger.v3.oas.models.media.BinarySchema) Schema(io.swagger.v3.oas.models.media.Schema) ByteArraySchema(io.swagger.v3.oas.models.media.ByteArraySchema) ArraySchema(io.swagger.v3.oas.models.media.ArraySchema) Test(org.testng.annotations.Test)

Aggregations

ArraySchema (io.swagger.v3.oas.models.media.ArraySchema)1 BinarySchema (io.swagger.v3.oas.models.media.BinarySchema)1 ByteArraySchema (io.swagger.v3.oas.models.media.ByteArraySchema)1 Schema (io.swagger.v3.oas.models.media.Schema)1 Test (org.testng.annotations.Test)1