skema

Str

@Serializable
@SerialName(value = "String")
data class Str(val minLength: Int? = null, val maxLength: Int? = null, val pattern: String? = null, val format: String? = null) : JsonSpec(source)

String value, optionally constrained by length and pattern.

Constructors

Str

constructor(minLength: Int? = null, maxLength: Int? = null, pattern: String? = null, format: String? = null)(source)

Properties

format

JSON Schema format annotation (date-time, email, uri, uuid, ...), or null. Free-form: JSON Schema treats unknown formats as annotations rather than errors.

maxLength

Maximum length, or null for unbounded.

minLength

Minimum length, or null for unbounded.

pattern

Regex pattern the value must match, or null for no constraint.