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

com.ancientlightstudios.quarkus.kotlin.openapi.inspection.SpecInspection.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.TransformableSpec

class SpecInspection(val spec: TransformableSpec) {

    fun bundles(block: RequestBundleInspection.() -> Unit) =
        spec.bundles.forEach { RequestBundleInspection(it).block() }

    fun schemas(block: SchemaInspection.() -> Unit) =
        spec.schemas.forEach { SchemaInspection(it).block() }

}

fun TransformableSpec.inspect(block: SpecInspection.() -> Unit) = SpecInspection(this).block()






© 2015 - 2024 Weber Informatics LLC | Privacy Policy