All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ancientlightstudios.quarkus.kotlin.openapi.models.hints.ParameterVariableNameHint.kt Maven / Gradle / Ivy

There is a newer version: 0.4.14
Show newest version
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)

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy