com.ancientlightstudios.quarkus.kotlin.openapi.models.hints.RequestMethodNameHint.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.models.hints
import com.ancientlightstudios.quarkus.kotlin.openapi.models.kotlin.MethodName
import com.ancientlightstudios.quarkus.kotlin.openapi.models.transformable.TransformableRequest
import com.ancientlightstudios.quarkus.kotlin.openapi.utils.ProbableBug
// specifies the method name of a request
object RequestMethodNameHint : Hint {
var TransformableRequest.requestMethodName: MethodName
get() = get(RequestMethodNameHint) ?: ProbableBug("Name of the request not set")
set(value) = set(RequestMethodNameHint, value)
}