Skip to content

Commit

Permalink
DEVDOCS-6025: SF Form Fields, add requirements field for password fie…
Browse files Browse the repository at this point in the history
…ld (#476)
  • Loading branch information
bc-andreadao authored Sep 13, 2024
1 parent ffdcc4e commit 166d215
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions reference/form_fields.sf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,29 @@ components:
description: The minimum valid value for the field (integer and date type only).
maxLength:
type: integer
description: The maximum length for the value (string type only)
description: The maximum length for the value (string type only).
secret:
type: boolean
description: Whether the field represents a password field
description: Whether the field represents a password field (password field type only).
requirements:
type: object
description: Password requirements (password field type only).
properties:
alpha:
type: string
description: Regex expression for the required alpha characters.
example: '[A-Za-z]'
description:
type: string
description: Description for the password requirements.
example: Passwords must be at least 7 characters and contain both alphabetic and numeric characters.
minlength:
type: integer
description: Minimum password length.
numeric:
type: string
description: Regex expression for the required numeric characters.
example: '[0-9]'
options:
type: object
properties:
Expand Down

0 comments on commit 166d215

Please sign in to comment.