com.ancientlightstudios.quarkus.kotlin.openapi.models.hints.ParameterVariableNameHint.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.VariableName
import com.ancientlightstudios.quarkus.kotlin.openapi.models.transformable.TransformableBody
import com.ancientlightstudios.quarkus.kotlin.openapi.models.transformable.TransformableParameter
import com.ancientlightstudios.quarkus.kotlin.openapi.utils.ProbableBug
// specifies the variable name of a request parameter, body or schema property
object ParameterVariableNameHint : Hint {
var TransformableParameter.parameterVariableName: VariableName
get() = get(ParameterVariableNameHint) ?: ProbableBug("Name of the parameter not set")
set(value) = set(ParameterVariableNameHint, value)
var TransformableBody.parameterVariableName: VariableName
get() = get(ParameterVariableNameHint) ?: ProbableBug("Name of the parameter not set")
set(value) = set(ParameterVariableNameHint, value)
}