Skip to content

Commit e2d280a

Browse files
committed
bug: Fixed linode-cli databases types output
Requires linode/linode-cli#298 Closes linode/linode-cli#297 The `x-linode-cli-nested-list` spec extension must reference a property of the returned schema, which it currently does not. Additionally, this particular schema includes three related nested lists; I've added support for all of them in the linked CLI change, and the new structure here supports that.
1 parent 41b5219 commit e2d280a

File tree

1 file changed

+26
-14
lines changed

1 file changed

+26
-14
lines changed

openapi.yaml

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5548,20 +5548,26 @@ paths:
55485548
description: Returns a paginated list of all Managed Database types.
55495549
content:
55505550
application/json:
5551-
x-linode-cli-nested-list: cluster_size
5551+
x-linode-cli-nested-list: engines.mysql, engines.postgresql, engines.mongodb
55525552
x-linode-cli-use-schema:
55535553
type: object
55545554
properties:
55555555
id:
55565556
x-linode-cli-display: 1
55575557
label:
55585558
x-linode-cli-display: 2
5559-
cluster_size.quantity:
5560-
x-linode-cli-display: 3
5561-
cluster_size.price.hourly:
5562-
x-linode-cli-display: 4
5563-
cluster_size.price.monthly:
5564-
x-linode-cli-display: 5
5559+
_split:
5560+
x-linode-cli-display: 2.5
5561+
engines:
5562+
properties:
5563+
quantity:
5564+
x-linode-cli-display: 3
5565+
price:
5566+
properties:
5567+
hourly:
5568+
x-linode-cli-display: 4
5569+
monthly:
5570+
x-linode-cli-display: 5
55655571
schema:
55665572
allOf:
55675573
- $ref: '#/components/schemas/PaginationEnvelope'
@@ -5608,20 +5614,26 @@ paths:
56085614
description: Returns a single Managed Database type.
56095615
content:
56105616
application/json:
5611-
x-linode-cli-nested-list: cluster_size
5617+
x-linode-cli-nested-list: engines.mysql, engines.postgresql, engines.mongodb
56125618
x-linode-cli-use-schema:
56135619
type: object
56145620
properties:
56155621
id:
56165622
x-linode-cli-display: 1
56175623
label:
56185624
x-linode-cli-display: 2
5619-
cluster_size.quantity:
5620-
x-linode-cli-display: 3
5621-
cluster_size.price.hourly:
5622-
x-linode-cli-display: 4
5623-
cluster_size.price.monthly:
5624-
x-linode-cli-display: 5
5625+
_split:
5626+
x-linode-cli-display: 2.5
5627+
engines:
5628+
properties:
5629+
quantity:
5630+
x-linode-cli-display: 3
5631+
price:
5632+
properties:
5633+
hourly:
5634+
x-linode-cli-display: 4
5635+
monthly:
5636+
x-linode-cli-display: 5
56255637
schema:
56265638
$ref: '#/components/schemas/DatabaseType'
56275639
default:

0 commit comments

Comments
 (0)