Search in sources :

Example 1 with MyOtherClass

use of io.swagger.v3.jaxrs2.resources.MyOtherClass in project swagger-core by swagger-api.

the class ReaderTest method testMaintainPropertyNames.

@Test(description = "Maintain Property names per #2635")
public void testMaintainPropertyNames() {
    final MyOtherClass myOtherClass = new MyOtherClass();
    myOtherClass.populate("myPropertyName value");
    Map<String, Schema> schemas = resolveJaxb(MyOtherClass.class);
    assertNotNull(schemas.get("MyOtherClass").getProperties().get("MyPrOperTyName"));
}
Also used : IntegerSchema(io.swagger.v3.oas.models.media.IntegerSchema) ArraySchema(io.swagger.v3.oas.models.media.ArraySchema) Schema(io.swagger.v3.oas.models.media.Schema) MyOtherClass(io.swagger.v3.jaxrs2.resources.MyOtherClass) Test(org.testng.annotations.Test)

Aggregations

MyOtherClass (io.swagger.v3.jaxrs2.resources.MyOtherClass)1 ArraySchema (io.swagger.v3.oas.models.media.ArraySchema)1 IntegerSchema (io.swagger.v3.oas.models.media.IntegerSchema)1 Schema (io.swagger.v3.oas.models.media.Schema)1 Test (org.testng.annotations.Test)1