class ObjectMapperProvider extends ObjectMapperFactory {

	/**
	 * The Json mapper.
	 */
	private final ObjectMapper jsonMapper;

	/**
	 * The Yaml mapper.
	 */
	private final ObjectMapper yamlMapper;

	/**
	 * Instantiates a new Spring doc object mapper.
	 *
	 * @param springDocConfigProperties the spring doc config properties
	 */
	public ObjectMapperProvider(SpringDocConfigProperties springDocConfigProperties) {
		OpenApiVersion openApiVersion = springDocConfigProperties.getApiDocs().getVersion();
		if (openApiVersion == OpenApiVersion.OPENAPI_3_1) {
			jsonMapper = Json31.mapper();
			yamlMapper = Yaml31.mapper();
		}
		else {
			jsonMapper = Json.mapper();
			yamlMapper = Yaml.mapper();
		}
	}

	/**
	 * Create json object mapper.
	 *
	 * @param springDocConfigProperties the spring doc config properties
	 * @return the object mapper
	 */
	public static ObjectMapper createJson(SpringDocConfigProperties springDocConfigProperties) {<FILL_FUNCTION_BODY>}

	/**
	 * Sort output.
	 *
	 * @param objectMapper the object mapper
	 */
	public static void sortOutput(ObjectMapper objectMapper, SpringDocConfigProperties springDocConfigProperties) {
		objectMapper.configure(SerializationFeature.ORDER_MAP_ENTRIES_BY_KEYS, true);
		objectMapper.configure(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY, true);
		if (OpenApiVersion.OPENAPI_3_1 == springDocConfigProperties.getApiDocs().getVersion()) {
			objectMapper.addMixIn(OpenAPI.class, SortedOpenAPIMixin31.class);
			objectMapper.addMixIn(Schema.class, SortedSchemaMixin31.class);
		}
		else {
			objectMapper.addMixIn(OpenAPI.class, SortedOpenAPIMixin.class);
			objectMapper.addMixIn(Schema.class, SortedSchemaMixin.class);
		}
	}

	/**
	 * Mapper object mapper.
	 *
	 * @return the object mapper
	 */
	public ObjectMapper jsonMapper() {
		return jsonMapper;
	}

	/**
	 * Yaml mapper object mapper.
	 *
	 * @return the object mapper
	 */
	public ObjectMapper yamlMapper() {
		return yamlMapper;
	}

}

		OpenApiVersion openApiVersion = springDocConfigProperties.getApiDocs().getVersion();
		ObjectMapper objectMapper;
		if (openApiVersion == OpenApiVersion.OPENAPI_3_1)
			objectMapper = ObjectMapperProvider.createJson31();
		else
			objectMapper = ObjectMapperProvider.createJson();

		if (springDocConfigProperties.isWriterWithOrderByKeys())
			sortOutput(objectMapper, springDocConfigProperties);

		return objectMapper;
	
<methods>public void <init>() ,public static com.fasterxml.jackson.databind.ObjectMapper buildStrictGenericObjectMapper() ,public static com.fasterxml.jackson.databind.ObjectMapper create(com.fasterxml.jackson.core.JsonFactory, boolean) ,public static com.fasterxml.jackson.databind.ObjectMapper createJson() ,public static com.fasterxml.jackson.databind.ObjectMapper createJson(com.fasterxml.jackson.core.JsonFactory) ,public static com.fasterxml.jackson.databind.ObjectMapper createJson31() ,public static com.fasterxml.jackson.databind.ObjectMapper createJson31(com.fasterxml.jackson.core.JsonFactory) ,public static com.fasterxml.jackson.databind.ObjectMapper createJsonConverter() ,public static com.fasterxml.jackson.databind.ObjectMapper createYaml() ,public static com.fasterxml.jackson.databind.ObjectMapper createYaml(com.fasterxml.jackson.dataformat.yaml.YAMLFactory) ,public static com.fasterxml.jackson.databind.ObjectMapper createYaml(boolean) ,public static com.fasterxml.jackson.databind.ObjectMapper createYaml31() ,public static com.fasterxml.jackson.databind.ObjectMapper createYaml31(com.fasterxml.jackson.dataformat.yaml.YAMLFactory) <variables>