org.http4k.contract.openapi.v2.jacksonExt.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http4k-contract Show documentation
Show all versions of http4k-contract Show documentation
http4k typesafe HTTP contracts and OpenApi support
package org.http4k.contract.openapi.v2
import org.http4k.contract.openapi.ApiInfo
import org.http4k.contract.openapi.OpenAPIJackson
import org.http4k.contract.openapi.OpenApiExtension
import org.http4k.core.Uri
import org.http4k.format.ConfigurableJackson
/**
* Defaults for configuring OpenApi2 with Jackson
*/
fun OpenApi2(
apiInfo: ApiInfo,
baseUri: Uri,
json: ConfigurableJackson = OpenAPIJackson,
extensions: List = emptyList()
) = OpenApi2(apiInfo, json, baseUri, extensions)