From 51b92a707769293b444b3e0a67905c9cb2d8e1d6 Mon Sep 17 00:00:00 2001 From: Juan Treminio Date: Tue, 24 Jun 2025 16:10:07 -0700 Subject: [PATCH] Bumps max domains from 2 to 10 for approved API Apps --- openapi-raw.yaml | 4 ++-- openapi-sdk.yaml | 4 ++-- openapi.yaml | 4 ++-- sdks/php/src/Model/ApiAppCreateRequest.php | 8 ++++---- sdks/php/src/Model/ApiAppUpdateRequest.php | 8 ++++---- .../dropbox_sign/models/api_app_create_request.py | 2 +- .../dropbox_sign/models/api_app_update_request.py | 2 +- .../lib/dropbox-sign/models/api_app_create_request.rb | 10 +++++----- .../lib/dropbox-sign/models/api_app_update_request.rb | 10 +++++----- 9 files changed, 26 insertions(+), 26 deletions(-) diff --git a/openapi-raw.yaml b/openapi-raw.yaml index 48c4321fb..fcbb4baa2 100644 --- a/openapi-raw.yaml +++ b/openapi-raw.yaml @@ -7697,7 +7697,7 @@ components: type: array items: type: string - maxItems: 2 + maxItems: 10 minItems: 1 name: description: '_t__ApiAppCreate::NAME' @@ -7723,7 +7723,7 @@ components: type: array items: type: string - maxItems: 2 + maxItems: 10 name: description: '_t__ApiAppUpdate::NAME' type: string diff --git a/openapi-sdk.yaml b/openapi-sdk.yaml index 72542c9b1..881f4e4da 100644 --- a/openapi-sdk.yaml +++ b/openapi-sdk.yaml @@ -7797,7 +7797,7 @@ components: type: array items: type: string - maxItems: 2 + maxItems: 10 minItems: 1 name: description: 'The name you want to assign to the ApiApp.' @@ -7823,7 +7823,7 @@ components: type: array items: type: string - maxItems: 2 + maxItems: 10 name: description: 'The name you want to assign to the ApiApp.' type: string diff --git a/openapi.yaml b/openapi.yaml index 819e4ec59..bb5851ebe 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -7797,7 +7797,7 @@ components: type: array items: type: string - maxItems: 2 + maxItems: 10 minItems: 1 name: description: 'The name you want to assign to the ApiApp.' @@ -7823,7 +7823,7 @@ components: type: array items: type: string - maxItems: 2 + maxItems: 10 name: description: 'The name you want to assign to the ApiApp.' type: string diff --git a/sdks/php/src/Model/ApiAppCreateRequest.php b/sdks/php/src/Model/ApiAppCreateRequest.php index c6d0cc9a9..39c1c9ace 100644 --- a/sdks/php/src/Model/ApiAppCreateRequest.php +++ b/sdks/php/src/Model/ApiAppCreateRequest.php @@ -329,8 +329,8 @@ public function listInvalidProperties() if ($this->container['domains'] === null) { $invalidProperties[] = "'domains' can't be null"; } - if (count($this->container['domains']) > 2) { - $invalidProperties[] = "invalid value for 'domains', number of items must be less than or equal to 2."; + if (count($this->container['domains']) > 10) { + $invalidProperties[] = "invalid value for 'domains', number of items must be less than or equal to 10."; } if (count($this->container['domains']) < 1) { @@ -377,8 +377,8 @@ public function setDomains(array $domains) throw new InvalidArgumentException('non-nullable domains cannot be null'); } - if (count($domains) > 2) { - throw new InvalidArgumentException('invalid value for $domains when calling ApiAppCreateRequest., number of items must be less than or equal to 2.'); + if (count($domains) > 10) { + throw new InvalidArgumentException('invalid value for $domains when calling ApiAppCreateRequest., number of items must be less than or equal to 10.'); } if (count($domains) < 1) { throw new InvalidArgumentException('invalid length for $domains when calling ApiAppCreateRequest., number of items must be greater than or equal to 1.'); diff --git a/sdks/php/src/Model/ApiAppUpdateRequest.php b/sdks/php/src/Model/ApiAppUpdateRequest.php index 323f28d52..54f0a8c4e 100644 --- a/sdks/php/src/Model/ApiAppUpdateRequest.php +++ b/sdks/php/src/Model/ApiAppUpdateRequest.php @@ -326,8 +326,8 @@ public function listInvalidProperties() { $invalidProperties = []; - if (!is_null($this->container['domains']) && (count($this->container['domains']) > 2)) { - $invalidProperties[] = "invalid value for 'domains', number of items must be less than or equal to 2."; + if (!is_null($this->container['domains']) && (count($this->container['domains']) > 10)) { + $invalidProperties[] = "invalid value for 'domains', number of items must be less than or equal to 10."; } return $invalidProperties; @@ -421,8 +421,8 @@ public function setDomains(?array $domains) throw new InvalidArgumentException('non-nullable domains cannot be null'); } - if (count($domains) > 2) { - throw new InvalidArgumentException('invalid value for $domains when calling ApiAppUpdateRequest., number of items must be less than or equal to 2.'); + if (count($domains) > 10) { + throw new InvalidArgumentException('invalid value for $domains when calling ApiAppUpdateRequest., number of items must be less than or equal to 10.'); } $this->container['domains'] = $domains; diff --git a/sdks/python/dropbox_sign/models/api_app_create_request.py b/sdks/python/dropbox_sign/models/api_app_create_request.py index 2e8e6a77b..788c74a23 100644 --- a/sdks/python/dropbox_sign/models/api_app_create_request.py +++ b/sdks/python/dropbox_sign/models/api_app_create_request.py @@ -36,7 +36,7 @@ class ApiAppCreateRequest(BaseModel): ApiAppCreateRequest """ # noqa: E501 - domains: Annotated[List[StrictStr], Field(min_length=1, max_length=2)] = Field( + domains: Annotated[List[StrictStr], Field(min_length=1, max_length=10)] = Field( description="The domain names the ApiApp will be associated with." ) name: StrictStr = Field(description="The name you want to assign to the ApiApp.") diff --git a/sdks/python/dropbox_sign/models/api_app_update_request.py b/sdks/python/dropbox_sign/models/api_app_update_request.py index 7e1f87206..7370a7e96 100644 --- a/sdks/python/dropbox_sign/models/api_app_update_request.py +++ b/sdks/python/dropbox_sign/models/api_app_update_request.py @@ -46,7 +46,7 @@ class ApiAppUpdateRequest(BaseModel): default=None, description="An image file to use as a custom logo in embedded contexts. (Only applies to some API plans)", ) - domains: Optional[Annotated[List[StrictStr], Field(max_length=2)]] = Field( + domains: Optional[Annotated[List[StrictStr], Field(max_length=10)]] = Field( default=None, description="The domain names the ApiApp will be associated with." ) name: Optional[StrictStr] = Field( diff --git a/sdks/ruby/lib/dropbox-sign/models/api_app_create_request.rb b/sdks/ruby/lib/dropbox-sign/models/api_app_create_request.rb index f37d1a2fc..c9cf7bf08 100644 --- a/sdks/ruby/lib/dropbox-sign/models/api_app_create_request.rb +++ b/sdks/ruby/lib/dropbox-sign/models/api_app_create_request.rb @@ -165,8 +165,8 @@ def list_invalid_properties invalid_properties.push('invalid value for "domains", domains cannot be nil.') end - if @domains.length > 2 - invalid_properties.push('invalid value for "domains", number of items must be less than or equal to 2.') + if @domains.length > 10 + invalid_properties.push('invalid value for "domains", number of items must be less than or equal to 10.') end if @domains.length < 1 @@ -184,7 +184,7 @@ def list_invalid_properties # @return true if the model is valid def valid? return false if @domains.nil? - return false if @domains.length > 2 + return false if @domains.length > 10 return false if @domains.length < 1 return false if @name.nil? true @@ -196,8 +196,8 @@ def domains=(domains) if domains.nil? fail ArgumentError, 'domains cannot be nil' end - if domains.length > 2 - fail ArgumentError, 'invalid value for "domains", number of items must be less than or equal to 2.' + if domains.length > 10 + fail ArgumentError, 'invalid value for "domains", number of items must be less than or equal to 10.' end if domains.length < 1 diff --git a/sdks/ruby/lib/dropbox-sign/models/api_app_update_request.rb b/sdks/ruby/lib/dropbox-sign/models/api_app_update_request.rb index 45b38ce82..4e04ba155 100644 --- a/sdks/ruby/lib/dropbox-sign/models/api_app_update_request.rb +++ b/sdks/ruby/lib/dropbox-sign/models/api_app_update_request.rb @@ -161,8 +161,8 @@ def initialize(attributes = {}) # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if !@domains.nil? && @domains.length > 2 - invalid_properties.push('invalid value for "domains", number of items must be less than or equal to 2.') + if !@domains.nil? && @domains.length > 10 + invalid_properties.push('invalid value for "domains", number of items must be less than or equal to 10.') end invalid_properties @@ -171,15 +171,15 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if !@domains.nil? && @domains.length > 2 + return false if !@domains.nil? && @domains.length > 10 true end # Custom attribute writer method with validation # @param [Object] domains Value to be assigned def domains=(domains) - if domains.length > 2 - fail ArgumentError, 'invalid value for "domains", number of items must be less than or equal to 2.' + if domains.length > 10 + fail ArgumentError, 'invalid value for "domains", number of items must be less than or equal to 10.' end @domains = domains