com.ancientlightstudios.quarkus.kotlin.openapi.refactoring.RefactoringContext.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.refactoring
import com.ancientlightstudios.quarkus.kotlin.openapi.Config
import com.ancientlightstudios.quarkus.kotlin.openapi.InterfaceType
import com.ancientlightstudios.quarkus.kotlin.openapi.models.transformable.TransformableSpec
class RefactoringContext(val spec: TransformableSpec, val config: Config) {
val interfaceType = config.interfaceType
val interfacePackage = config.packageName
val modelPackage = "${config.packageName}.model"
val withTestSupport = config.interfaceType == InterfaceType.TEST_CLIENT
fun performRefactoring(refactoring: SpecRefactoring) {
refactoring.apply { perform() }
}
}