Skip to content

Commit

Permalink
Updates Droplet name field with character limits (#865)
Browse files Browse the repository at this point in the history
* Updates Droplet name field with character limits

* adds correct regex pattern to Droplet name
  • Loading branch information
dbrian57 authored Apr 4, 2024
1 parent 9b9ccd0 commit d26bc4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ allOf:
type: array
items:
type: string
maxLength: 255
pattern: ^[a-zA-Z0-9]?[a-z0-9A-Z.\-]*[a-z0-9A-Z]$
example:
- sub-01.example.com
- sub-02.example.com
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ allOf:
properties:
name:
type: string
maxLength: 255
pattern: ^[a-zA-Z0-9]?[a-z0-9A-Z.\-]*[a-z0-9A-Z]$
example: example.com
description: The human-readable string you wish to use when displaying
the Droplet name. The name, if set to a domain name managed in the
Expand Down

0 comments on commit d26bc4e

Please sign in to comment.