com.ancientlightstudios.quarkus.kotlin.openapi.patching.ParameterSchemaPatch.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-kotlin-openapi-maven-plugin Show documentation
Show all versions of quarkus-kotlin-openapi-maven-plugin Show documentation
A Maven plugin to use the OpenAPI generator.
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