package io.hawt.jsonschema.internal;

import com.fasterxml.jackson.databind.module.SimpleModule;

public class BeanValidationAnnotationModule extends SimpleModule {

    private static final long serialVersionUID = 1L;

    public BeanValidationAnnotationModule() {
        super("bean-validation-annotations");
    }

    @Override
    public void setupModule(SetupContext context) {
        BeanValidationAnnotationIntrospector introspector = new BeanValidationAnnotationIntrospector(context.getTypeFactory());

        context.insertAnnotationIntrospector(introspector);
    }

}
