mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
bridgev2/login: add default_value for user input fields
This commit is contained in:
parent
6da5f6b5d0
commit
c69518ab3c
2 changed files with 6 additions and 1 deletions
|
|
@ -190,6 +190,8 @@ type LoginInputDataField struct {
|
|||
Name string `json:"name"`
|
||||
// The description of the field shown to the user.
|
||||
Description string `json:"description"`
|
||||
// A default value that the client can pre-fill the field with.
|
||||
DefaultValue string `json:"default_value,omitempty"`
|
||||
// A regex pattern that the client can use to validate input client-side.
|
||||
Pattern string `json:"pattern,omitempty"`
|
||||
// For fields of type select, the valid options.
|
||||
|
|
|
|||
|
|
@ -728,11 +728,14 @@ components:
|
|||
description: A more detailed description of the field shown to the user.
|
||||
examples:
|
||||
- Include the country code with a +
|
||||
default_value:
|
||||
type: string
|
||||
description: A default value that the client can pre-fill the field with.
|
||||
pattern:
|
||||
type: string
|
||||
format: regex
|
||||
description: A regular expression that the field value must match.
|
||||
select:
|
||||
options:
|
||||
type: array
|
||||
description: For fields of type select, the valid options.
|
||||
items:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue