com.ancientlightstudios.quarkus.kotlin.openapi.inspection.SchemaInspection.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.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()