StringSchema

data class StringSchema(val title: String? = null, val description: String? = null, val minLength: Int? = null, val maxLength: Int? = null, val format: StringSchemaFormat? = null, val default: String? = null) : PrimitiveSchemaDefinition(source)

Defines a string-typed property in an elicitation schema.

Constructors

Link copied to clipboard
constructor(title: String? = null, description: String? = null, minLength: Int? = null, maxLength: Int? = null, format: StringSchemaFormat? = null, default: String? = null)

Properties

Link copied to clipboard

Optional default value.

Link copied to clipboard

Optional description for the field.

Link copied to clipboard

Optional format constraint (e.g., email, URI, date).

Link copied to clipboard

Maximum string length.

Link copied to clipboard

Minimum string length.

Link copied to clipboard

Optional display title for the field.

Link copied to clipboard

JSON Schema type discriminator, always "string".