use of io.swagger.v3.core.resolving.resources.Ticket2884ModelClass in project swagger-core by swagger-api.
the class Ticket2884Test method test2884.
@Test
public void test2884() throws Exception {
final ModelResolver modelResolver = new ModelResolver(mapper());
ModelConverterContextImpl context = new ModelConverterContextImpl(modelResolver);
Ticket2884ModelClass a = new Ticket2884ModelClass();
Schema model = context.resolve(new AnnotatedType(Ticket2884Model.class));
SerializationMatchers.assertEqualsToYaml(context.getDefinedModels(), "Ticket2884Model:\n" + " type: object\n" + " properties:\n" + " Ticket2884Model:\n" + " type: object");
context = new ModelConverterContextImpl(modelResolver);
model = context.resolve(new AnnotatedType(Ticket2884ModelClass.class));
SerializationMatchers.assertEqualsToYaml(context.getDefinedModels(), "Ticket2884ModelClass:\n" + " type: object\n" + " properties:\n" + " Ticket2884ModelClass:\n" + " type: object\n" + " properties:\n" + " bar:\n" + " type: string\n" + " foo:\n" + " type: array\n" + " items:\n" + " type: string\n");
}
Aggregations