Search in sources :

Example 1 with EmptyModel

use of io.swagger.models.EmptyModel in project swagger-core by swagger-api.

the class ModelConverterTest method scanEmptyModel.

@Test(description = "it should scan an empty model per 499")
public void scanEmptyModel() {
    final Map<String, Model> schemas = readAll(EmptyModel.class);
    final ModelImpl model = (ModelImpl) schemas.get("EmptyModel");
    assertNull(model.getProperties());
    assertEquals(model.getType(), "object");
}
Also used : AbstractModelWithApiModel(io.swagger.models.composition.AbstractModelWithApiModel) Model(io.swagger.models.Model) ModelWithApiModel(io.swagger.models.ModelWithApiModel) EmptyModel(io.swagger.models.EmptyModel) JodaDateTimeModel(io.swagger.models.JodaDateTimeModel) JacksonReadonlyModel(io.swagger.models.JacksonReadonlyModel) ModelImpl(io.swagger.models.ModelImpl) Test(org.testng.annotations.Test)

Aggregations

EmptyModel (io.swagger.models.EmptyModel)1 JacksonReadonlyModel (io.swagger.models.JacksonReadonlyModel)1 JodaDateTimeModel (io.swagger.models.JodaDateTimeModel)1 Model (io.swagger.models.Model)1 ModelImpl (io.swagger.models.ModelImpl)1 ModelWithApiModel (io.swagger.models.ModelWithApiModel)1 AbstractModelWithApiModel (io.swagger.models.composition.AbstractModelWithApiModel)1 Test (org.testng.annotations.Test)1