
io.javalin.plugin.openapi.ui.OpenApiUiOptions.kt Maven / Gradle / Ivy
The newest version!
package io.javalin.plugin.openapi.ui
abstract class OpenApiUiOptions>(val path: String) {
abstract val defaultTitle: String
var title: String? = null
fun title(value: String) = build { title = value }
fun createTitle(): String = title ?: defaultTitle
protected fun build(builder: OpenApiUiOptions.() -> Unit): T {
this.builder()
return this as T
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy