DefaultContentValidator

data class DefaultContentValidator(var allowedCharacters: String = "") : ContentValidator

Default content validator. Accepts only non-empty strings.

Constructors

Link copied to clipboard
constructor(allowedCharacters: String = "")
constructor(source: Map<String, Any?>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val _type: String
Link copied to clipboard

OCR whitelist. Empty string means no restriction. Only characters that are present in the allowedCharacters string will be accepted. For example, if allowedCharacters is set to "ab", the result may only contain characters 'a' and 'b'.

Functions

Link copied to clipboard
open override fun toJson(config: ToJsonConfiguration): JsonObject
Link copied to clipboard