Skip to content

Commit 51b92a7

Browse files
Bumps max domains from 2 to 10 for approved API Apps
1 parent 971c829 commit 51b92a7

9 files changed

Lines changed: 26 additions & 26 deletions

File tree

openapi-raw.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7697,7 +7697,7 @@ components:
76977697
type: array
76987698
items:
76997699
type: string
7700-
maxItems: 2
7700+
maxItems: 10
77017701
minItems: 1
77027702
name:
77037703
description: '_t__ApiAppCreate::NAME'
@@ -7723,7 +7723,7 @@ components:
77237723
type: array
77247724
items:
77257725
type: string
7726-
maxItems: 2
7726+
maxItems: 10
77277727
name:
77287728
description: '_t__ApiAppUpdate::NAME'
77297729
type: string

openapi-sdk.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7797,7 +7797,7 @@ components:
77977797
type: array
77987798
items:
77997799
type: string
7800-
maxItems: 2
7800+
maxItems: 10
78017801
minItems: 1
78027802
name:
78037803
description: 'The name you want to assign to the ApiApp.'
@@ -7823,7 +7823,7 @@ components:
78237823
type: array
78247824
items:
78257825
type: string
7826-
maxItems: 2
7826+
maxItems: 10
78277827
name:
78287828
description: 'The name you want to assign to the ApiApp.'
78297829
type: string

openapi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7797,7 +7797,7 @@ components:
77977797
type: array
77987798
items:
77997799
type: string
7800-
maxItems: 2
7800+
maxItems: 10
78017801
minItems: 1
78027802
name:
78037803
description: 'The name you want to assign to the ApiApp.'
@@ -7823,7 +7823,7 @@ components:
78237823
type: array
78247824
items:
78257825
type: string
7826-
maxItems: 2
7826+
maxItems: 10
78277827
name:
78287828
description: 'The name you want to assign to the ApiApp.'
78297829
type: string

sdks/php/src/Model/ApiAppCreateRequest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,8 @@ public function listInvalidProperties()
329329
if ($this->container['domains'] === null) {
330330
$invalidProperties[] = "'domains' can't be null";
331331
}
332-
if (count($this->container['domains']) > 2) {
333-
$invalidProperties[] = "invalid value for 'domains', number of items must be less than or equal to 2.";
332+
if (count($this->container['domains']) > 10) {
333+
$invalidProperties[] = "invalid value for 'domains', number of items must be less than or equal to 10.";
334334
}
335335

336336
if (count($this->container['domains']) < 1) {
@@ -377,8 +377,8 @@ public function setDomains(array $domains)
377377
throw new InvalidArgumentException('non-nullable domains cannot be null');
378378
}
379379

380-
if (count($domains) > 2) {
381-
throw new InvalidArgumentException('invalid value for $domains when calling ApiAppCreateRequest., number of items must be less than or equal to 2.');
380+
if (count($domains) > 10) {
381+
throw new InvalidArgumentException('invalid value for $domains when calling ApiAppCreateRequest., number of items must be less than or equal to 10.');
382382
}
383383
if (count($domains) < 1) {
384384
throw new InvalidArgumentException('invalid length for $domains when calling ApiAppCreateRequest., number of items must be greater than or equal to 1.');

sdks/php/src/Model/ApiAppUpdateRequest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,8 @@ public function listInvalidProperties()
326326
{
327327
$invalidProperties = [];
328328

329-
if (!is_null($this->container['domains']) && (count($this->container['domains']) > 2)) {
330-
$invalidProperties[] = "invalid value for 'domains', number of items must be less than or equal to 2.";
329+
if (!is_null($this->container['domains']) && (count($this->container['domains']) > 10)) {
330+
$invalidProperties[] = "invalid value for 'domains', number of items must be less than or equal to 10.";
331331
}
332332

333333
return $invalidProperties;
@@ -421,8 +421,8 @@ public function setDomains(?array $domains)
421421
throw new InvalidArgumentException('non-nullable domains cannot be null');
422422
}
423423

424-
if (count($domains) > 2) {
425-
throw new InvalidArgumentException('invalid value for $domains when calling ApiAppUpdateRequest., number of items must be less than or equal to 2.');
424+
if (count($domains) > 10) {
425+
throw new InvalidArgumentException('invalid value for $domains when calling ApiAppUpdateRequest., number of items must be less than or equal to 10.');
426426
}
427427
$this->container['domains'] = $domains;
428428

sdks/python/dropbox_sign/models/api_app_create_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class ApiAppCreateRequest(BaseModel):
3636
ApiAppCreateRequest
3737
""" # noqa: E501
3838

39-
domains: Annotated[List[StrictStr], Field(min_length=1, max_length=2)] = Field(
39+
domains: Annotated[List[StrictStr], Field(min_length=1, max_length=10)] = Field(
4040
description="The domain names the ApiApp will be associated with."
4141
)
4242
name: StrictStr = Field(description="The name you want to assign to the ApiApp.")

sdks/python/dropbox_sign/models/api_app_update_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class ApiAppUpdateRequest(BaseModel):
4646
default=None,
4747
description="An image file to use as a custom logo in embedded contexts. (Only applies to some API plans)",
4848
)
49-
domains: Optional[Annotated[List[StrictStr], Field(max_length=2)]] = Field(
49+
domains: Optional[Annotated[List[StrictStr], Field(max_length=10)]] = Field(
5050
default=None, description="The domain names the ApiApp will be associated with."
5151
)
5252
name: Optional[StrictStr] = Field(

sdks/ruby/lib/dropbox-sign/models/api_app_create_request.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ def list_invalid_properties
165165
invalid_properties.push('invalid value for "domains", domains cannot be nil.')
166166
end
167167

168-
if @domains.length > 2
169-
invalid_properties.push('invalid value for "domains", number of items must be less than or equal to 2.')
168+
if @domains.length > 10
169+
invalid_properties.push('invalid value for "domains", number of items must be less than or equal to 10.')
170170
end
171171

172172
if @domains.length < 1
@@ -184,7 +184,7 @@ def list_invalid_properties
184184
# @return true if the model is valid
185185
def valid?
186186
return false if @domains.nil?
187-
return false if @domains.length > 2
187+
return false if @domains.length > 10
188188
return false if @domains.length < 1
189189
return false if @name.nil?
190190
true
@@ -196,8 +196,8 @@ def domains=(domains)
196196
if domains.nil?
197197
fail ArgumentError, 'domains cannot be nil'
198198
end
199-
if domains.length > 2
200-
fail ArgumentError, 'invalid value for "domains", number of items must be less than or equal to 2.'
199+
if domains.length > 10
200+
fail ArgumentError, 'invalid value for "domains", number of items must be less than or equal to 10.'
201201
end
202202

203203
if domains.length < 1

sdks/ruby/lib/dropbox-sign/models/api_app_update_request.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ def initialize(attributes = {})
161161
# @return Array for valid properties with the reasons
162162
def list_invalid_properties
163163
invalid_properties = Array.new
164-
if !@domains.nil? && @domains.length > 2
165-
invalid_properties.push('invalid value for "domains", number of items must be less than or equal to 2.')
164+
if !@domains.nil? && @domains.length > 10
165+
invalid_properties.push('invalid value for "domains", number of items must be less than or equal to 10.')
166166
end
167167

168168
invalid_properties
@@ -171,15 +171,15 @@ def list_invalid_properties
171171
# Check to see if the all the properties in the model are valid
172172
# @return true if the model is valid
173173
def valid?
174-
return false if !@domains.nil? && @domains.length > 2
174+
return false if !@domains.nil? && @domains.length > 10
175175
true
176176
end
177177

178178
# Custom attribute writer method with validation
179179
# @param [Object] domains Value to be assigned
180180
def domains=(domains)
181-
if domains.length > 2
182-
fail ArgumentError, 'invalid value for "domains", number of items must be less than or equal to 2.'
181+
if domains.length > 10
182+
fail ArgumentError, 'invalid value for "domains", number of items must be less than or equal to 10.'
183183
end
184184

185185
@domains = domains

0 commit comments

Comments
 (0)