io.swagger.v3.core.jackson.SwaggerModule Maven / Gradle / Ivy
package io.swagger.v3.core.jackson;
import com.fasterxml.jackson.databind.module.SimpleModule;
public class SwaggerModule extends SimpleModule {
private static final long serialVersionUID = 1L;
/*
/**********************************************************
/* Life-cycle
/**********************************************************
*/
public SwaggerModule() {
super(PackageVersion.VERSION);
}
@Override
public void setupModule(SetupContext context) {
super.setupModule(context);
context.insertAnnotationIntrospector(new SwaggerAnnotationIntrospector());
}
}