StringPropertyDefinition

data class StringPropertyDefinition(val type: List<String> = listOf("string"), val description: String? = null, val nullable: Boolean? = null, val format: String? = null, val enum: List<String>? = null, val minLength: Int? = null, val maxLength: Int? = null, val pattern: String? = null, val default: JsonElement? = null, val constValue: JsonElement? = null) : ValuePropertyDefinition(source)

Represents a string property.

Constructors

Link copied to clipboard
constructor(type: List<String> = listOf("string"), description: String? = null, nullable: Boolean? = null, format: String? = null, enum: List<String>? = null, minLength: Int? = null, maxLength: Int? = null, pattern: String? = null, default: JsonElement? = null, constValue: JsonElement? = null)

Properties

Link copied to clipboard
@SerialName(value = "const")
val constValue: JsonElement?
Link copied to clipboard
Link copied to clipboard
open override val description: String?

Optional description of the property.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val nullable: Boolean?

Whether the property can be null.

Link copied to clipboard
Link copied to clipboard

The data type of the property.