Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions bridgev2/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
6 changes: 6 additions & 0 deletions bridgev2/matrix/provisioning.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading