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

main.io.github.smiley4.ktorswaggerui.data.PluginConfigData.kt Maven / Gradle / Ivy

There is a newer version: 3.4.0
Show newest version
package io.github.smiley4.ktorswaggerui.data

import io.github.smiley4.ktorswaggerui.dsl.config.PluginConfigDsl
import kotlin.reflect.KClass

/**
 * Complete plugin configuration
 */
data class PluginConfigData(
    val specAssigner: SpecAssigner,
    val pathFilter: PathFilter,
    val ignoredRouteSelectors: Set>,
    val swagger: SwaggerUIData,
    val info: InfoData,
    val servers: List,
    val externalDocs: ExternalDocsData,
    val specConfigs: MutableMap,
    val postBuild: PostBuild?,
    val schemaConfig: SchemaConfigData,
    val exampleConfig: ExampleConfigData,
    val securityConfig: SecurityData,
    val tagsConfig: TagsData
) {

    companion object {
        val DEFAULT = PluginConfigData(
            specAssigner = { _, _ -> PluginConfigDsl.DEFAULT_SPEC_ID },
            pathFilter = { _, _ -> true },
            ignoredRouteSelectors = emptySet(),
            swagger = SwaggerUIData.DEFAULT,
            info = InfoData.DEFAULT,
            servers = emptyList(),
            externalDocs = ExternalDocsData.DEFAULT,
            specConfigs = mutableMapOf(),
            postBuild = null,
            schemaConfig = SchemaConfigData.DEFAULT,
            exampleConfig = ExampleConfigData.DEFAULT,
            securityConfig = SecurityData.DEFAULT,
            tagsConfig = TagsData.DEFAULT
        )
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy