Skip to content

Commit 0ac7918

Browse files
committed
Added x-linode-cli-nested-list spec extension
This is used by the CLI for rendering nested lists into table rows, repeating the values of other columns.
1 parent 86953b5 commit 0ac7918

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,4 @@ Attribute | Location | Type | Supported By | Explanation
4949
`x-linode-ref-name`| keyword | string | [Linode Developer's Site](https://github.com/linode/developers) | Provides a mechanism by which the Developer's site can generate a dropdown menu with an Object's name when using the `oneOf` keyword with a `discriminator`. **Note**: This front end functionality is currently being developed.
5050
`x-linode-cli-rows`| media type | array | A list of JSON paths where the CLI can find the value it should treat as table rows. Only needed for irregular endpoints.
5151
`x-linode-cli-use-schema` | media type | schema or $ref | The schema the CLI should use when showing a row for this response. Use with `x-linode-cli-rows`.
52+
`x-linode-cli-nested-list` | media type | string | The name of the property defined by this response body's schema that is a nested list. Items in the list will be broken out into rows in the CLI's output.

openapi.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6268,6 +6268,18 @@ paths:
62686268
description: Returns an array of all Pools in this Kubernetes cluster.
62696269
content:
62706270
application/json:
6271+
x-linode-cli-nested-list: linodes
6272+
x-linode-cli-use-schema:
6273+
type: object
6274+
properties:
6275+
id:
6276+
x-linode-cli-display: 1
6277+
type:
6278+
x-linode-cli-display: 2
6279+
linodes.id:
6280+
x-linode-cli-display: 3
6281+
linodes.status:
6282+
x-linode-cli-display: 4
62716283
schema:
62726284
type: object
62736285
properties:

0 commit comments

Comments
 (0)