feat: add plugin to support ktor-server-resources (#358)

This commit is contained in:
Serhii Prodan
2022-10-29 14:14:32 +02:00
committed by GitHub
parent e4217843b7
commit 4946a27327
14 changed files with 630 additions and 1 deletions

View File

@ -20,6 +20,11 @@ import kotlin.reflect.full.findAnnotation
import kotlin.reflect.full.hasAnnotation
import kotlin.reflect.full.memberProperties
@Deprecated(
message = "This functionality is deprecated and will be removed in the future. " +
"Use 'ktor-server-resources' with 'kompendium-resources' plugin instead.",
level = DeprecationLevel.WARNING
)
object NotarizedLocations {
data class LocationMetadata(
@ -43,7 +48,6 @@ object NotarizedLocations {
name = "NotarizedLocations",
createConfiguration = ::Config
) {
println("hi")
val spec = application.attributes[KompendiumAttributes.openApiSpec]
val serializableReader = application.attributes[KompendiumAttributes.schemaConfigurator]
pluginConfig.locations.forEach { (k, v) ->