From d26bc4eae5bcfa9c0eb9bcbf9deef117e927e5f2 Mon Sep 17 00:00:00 2001 From: Dan Brian Date: Thu, 4 Apr 2024 10:46:00 -0400 Subject: [PATCH] Updates Droplet name field with character limits (#865) * Updates Droplet name field with character limits * adds correct regex pattern to Droplet name --- .../resources/droplets/models/droplet_multi_create.yml | 2 ++ .../resources/droplets/models/droplet_single_create.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/specification/resources/droplets/models/droplet_multi_create.yml b/specification/resources/droplets/models/droplet_multi_create.yml index c2e8df4b..dadb0c83 100644 --- a/specification/resources/droplets/models/droplet_multi_create.yml +++ b/specification/resources/droplets/models/droplet_multi_create.yml @@ -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 diff --git a/specification/resources/droplets/models/droplet_single_create.yml b/specification/resources/droplets/models/droplet_single_create.yml index e2ebd8d4..1fa5b56a 100644 --- a/specification/resources/droplets/models/droplet_single_create.yml +++ b/specification/resources/droplets/models/droplet_single_create.yml @@ -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