use of io.swagger.models.JacksonReadonlyModel in project swagger-core by swagger-api.
the class ModelConverterTest method setReadOnly.
@Test(description = "it should set readOnly per #854")
public void setReadOnly() {
final Map<String, Model> schemas = readAll(JacksonReadonlyModel.class);
final ModelImpl model = (ModelImpl) schemas.get("JacksonReadonlyModel");
final Property prop = model.getProperties().get("count");
assertTrue(prop.getReadOnly());
}
Aggregations