diff --git a/bridgev2/login.go b/bridgev2/login.go index ff07e02f..d3e86971 100644 --- a/bridgev2/login.go +++ b/bridgev2/login.go @@ -314,6 +314,9 @@ type LoginInputDataField struct { DefaultValue string `json:"default_value,omitempty"` // A regex pattern that the client can use to validate input client-side. Pattern string `json:"pattern,omitempty"` + // Minimum and maximum input length as a hint for the client + MinLength int `json:"min_length,omitzero"` + MaxLength int `json:"max_length,omitzero"` // For fields of type select, the valid options. // Pattern may also be filled with a regex that matches the same options. Options []string `json:"options,omitempty"` diff --git a/bridgev2/matrix/provisioning.yaml b/bridgev2/matrix/provisioning.yaml index c93e130d..177d69ed 100644 --- a/bridgev2/matrix/provisioning.yaml +++ b/bridgev2/matrix/provisioning.yaml @@ -883,6 +883,12 @@ components: type: string format: regex description: A regular expression that the field value must match. + min_length: + type: integer + description: Minimum input length as a hint for the client. + max_length: + type: integer + description: Maximum input length as a hint for the client. options: type: array description: For fields of type select, the valid options.