com.ancientlightstudios.quarkus.kotlin.openapi.models.transformed.Request.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.transformed
import com.ancientlightstudios.quarkus.kotlin.openapi.models.openapi.RequestMethod
import com.ancientlightstudios.quarkus.kotlin.openapi.models.openapi.ResponseCode
import com.ancientlightstudios.quarkus.kotlin.openapi.models.transformed.name.MethodName
import com.ancientlightstudios.quarkus.kotlin.openapi.models.transformed.typedefinition.TypeDefinitionUsage
data class Request(
val name: MethodName, val path: String, val method: RequestMethod,
val parameters: List, val body: TypeDefinitionUsage?,
val responses: List>,
val additionalInformation: AdditionalInformation
) {
fun hasInputData() = parameters.isNotEmpty() || body != null
}