All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.swagger.validator.util.JacksonJsonProvider Maven / Gradle / Ivy

There is a newer version: 1.0.7
Show newest version
package io.swagger.validator.util;


import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider;
import io.swagger.util.Json;

import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.ext.Provider;

@Provider
@Produces({MediaType.APPLICATION_JSON})
public class JacksonJsonProvider extends JacksonJaxbJsonProvider {
    private static ObjectMapper commonMapper = Json.mapper();

    public JacksonJsonProvider() {
        super.setMapper(commonMapper);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy