Skip to content

Commit

Permalink
Fixed type for few path params
Browse files Browse the repository at this point in the history
Signed-off-by: saimedhi <[email protected]>
  • Loading branch information
saimedhi committed Jul 1, 2024
1 parent 73d5524 commit f18a936
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions spec/namespaces/_core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3334,6 +3334,7 @@ components:
Comma-separated list of scroll IDs to clear.
To clear all scroll IDs, use `_all`.
required: true
deprecated: true
schema:
$ref: '../schemas/_common.yaml#/components/schemas/ScrollIds'
style: simple
Expand Down
4 changes: 2 additions & 2 deletions spec/namespaces/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -868,11 +868,11 @@ components:
in: path
name: name
description: |-
Name of the component template to retrieve.
Names of the component templates to retrieve.
Wildcard (`*`) expressions are supported.
required: true
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Name'
$ref: '../schemas/_common.yaml#/components/schemas/Names'
style: simple
cluster.get_component_template::query.cluster_manager_timeout:
name: cluster_manager_timeout
Expand Down
4 changes: 2 additions & 2 deletions spec/namespaces/indices.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2995,7 +2995,7 @@ components:
To target all data streams in a cluster, omit this parameter or use `*`.
required: true
schema:
$ref: '../schemas/_common.yaml#/components/schemas/IndexName'
$ref: '../schemas/_common.yaml#/components/schemas/IndexNames'
style: simple
indices.delete::path.index:
in: path
Expand Down Expand Up @@ -3727,7 +3727,7 @@ components:
description: Name of the index template to retrieve. Wildcard (*) expressions are supported.
required: true
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Name'
$ref: '../schemas/_common.yaml#/components/schemas/Names'
style: simple
indices.get_index_template::query.cluster_manager_timeout:
name: cluster_manager_timeout
Expand Down
6 changes: 6 additions & 0 deletions spec/schemas/_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,12 @@ components:
type: string
IndexName:
type: string
IndexNames:
oneOf:
- $ref: '#/components/schemas/IndexName'
- type: array
items:
$ref: '#/components/schemas/IndexName'
Field:
description: Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
type: string
Expand Down

0 comments on commit f18a936

Please sign in to comment.