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

com.ancientlightstudios.quarkus.kotlin.openapi.inspection.RequestInspection.kt Maven / Gradle / Ivy

There is a newer version: 0.4.14
Show newest version
package com.ancientlightstudios.quarkus.kotlin.openapi.inspection

import com.ancientlightstudios.quarkus.kotlin.openapi.models.transformable.TransformableRequest

class RequestInspection(val request: TransformableRequest) {

    fun parameters(block: ParameterInspection.() -> Unit) =
        request.parameters.forEach { ParameterInspection(it).block() }

    fun body(block: BodyInspection.() -> Unit) = request.body?.let { BodyInspection(it).block() }

    fun responses(block: ResponseInspection.() -> Unit) = request.responses.forEach { ResponseInspection(it).block() }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy