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

com.ancientlightstudios.quarkus.kotlin.openapi.inspection.SchemaInspection.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.TransformableSchema
import com.ancientlightstudios.quarkus.kotlin.openapi.models.transformable.components.SchemaComponent

class SchemaInspection(val schema: TransformableSchema) {

    inline fun  components(block: ComponentInspection.() -> Unit) {
        schema.components.filterIsInstance().forEach { ComponentInspection(it).block() }
    }

}

fun TransformableSchema.inspect(block: SchemaInspection.() -> Unit) =
    SchemaInspection(this).block()




© 2015 - 2024 Weber Informatics LLC | Privacy Policy