io.swagger.jackson.SwaggerModule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swagger-all Show documentation
Show all versions of swagger-all Show documentation
swagger-all is a rebundled verison of Swagger as one OSGi bundle.
package io.swagger.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());
}
}