
org.octopusden.octopus.dms.configuration.ValidationProperties.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dms-service Show documentation
Show all versions of dms-service Show documentation
Octopus module: dms-service
package org.octopusden.octopus.dms.configuration
import org.springframework.boot.context.properties.ConfigurationProperties
import org.springframework.boot.context.properties.ConstructorBinding
@ConfigurationProperties(prefix = "validation")
@ConstructorBinding
data class ValidationProperties(
val licenseValidator: LicenseValidatorProperties,
val nameValidator: NameValidatorProperties,
val contentValidator: ContentValidatorProperties
) {
data class LicenseValidatorProperties(val enabled: Boolean, val pattern: Regex)
data class NameValidatorProperties(val enabled: Boolean, val allowedPattern: Regex)
data class ContentValidatorProperties(
val enabled: Boolean,
val parallelism: Int,
val exclude: Set = emptySet(),
val forbiddenTokens: Set = emptySet(),
val forbiddenPatterns: Set = emptySet()
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy