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

com.ancientlightstudios.quarkus.kotlin.openapi.patching.ParameterSchemaPatch.kt Maven / Gradle / Ivy

There is a newer version: 0.4.14
Show newest version
package com.ancientlightstudios.quarkus.kotlin.openapi.patching

import com.ancientlightstudios.quarkus.kotlin.openapi.parser.asObjectNode
import com.fasterxml.jackson.databind.JsonNode
import com.fasterxml.jackson.databind.node.ArrayNode
import com.jayway.jsonpath.Configuration
import com.jayway.jsonpath.JsonPath
import com.jayway.jsonpath.Option
import com.jayway.jsonpath.spi.json.JacksonJsonNodeJsonProvider
import com.jayway.jsonpath.spi.mapper.JacksonMappingProvider

class ParameterSchemaPatch : JsonPatch {

    override fun process(json: JsonNode) {
        Configuration.setDefaults(object : Configuration.Defaults {
            override fun jsonProvider() = JacksonJsonNodeJsonProvider()

            override fun options() = mutableSetOf




© 2015 - 2024 Weber Informatics LLC | Privacy Policy