Skip to content

Commit 07f110f

Browse files
authored
validate searchable_snapshots.clear_cache fix (#376)
1 parent 7bd5d96 commit 07f110f

File tree

3 files changed

+64
-33
lines changed

3 files changed

+64
-33
lines changed

output/schema/schema.json

Lines changed: 51 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -109677,22 +109677,6 @@
109677109677
"attachedBehaviors": [
109678109678
"CommonQueryParameters"
109679109679
],
109680-
"body": {
109681-
"kind": "properties",
109682-
"properties": [
109683-
{
109684-
"name": "stub_c",
109685-
"required": true,
109686-
"type": {
109687-
"kind": "instance_of",
109688-
"type": {
109689-
"name": "integer",
109690-
"namespace": "_types"
109691-
}
109692-
}
109693-
}
109694-
]
109695-
},
109696109680
"inherits": {
109697109681
"type": {
109698109682
"name": "RequestBase",
@@ -109706,28 +109690,73 @@
109706109690
},
109707109691
"path": [
109708109692
{
109709-
"name": "stub_a",
109710-
"required": true,
109693+
"description": "A comma-separated list of index names",
109694+
"name": "index",
109695+
"required": false,
109711109696
"type": {
109712109697
"kind": "instance_of",
109713109698
"type": {
109714-
"name": "integer",
109699+
"name": "Indices",
109715109700
"namespace": "_types"
109716109701
}
109717109702
}
109718109703
}
109719109704
],
109720109705
"query": [
109721109706
{
109722-
"name": "stub_b",
109723-
"required": true,
109707+
"name": "expand_wildcards",
109708+
"required": false,
109724109709
"type": {
109725109710
"kind": "instance_of",
109726109711
"type": {
109727-
"name": "integer",
109712+
"name": "ExpandWildcards",
109728109713
"namespace": "_types"
109729109714
}
109730109715
}
109716+
},
109717+
{
109718+
"name": "allow_no_indices",
109719+
"required": false,
109720+
"type": {
109721+
"kind": "instance_of",
109722+
"type": {
109723+
"name": "boolean",
109724+
"namespace": "internal"
109725+
}
109726+
}
109727+
},
109728+
{
109729+
"name": "ignore_unavailable",
109730+
"required": false,
109731+
"type": {
109732+
"kind": "instance_of",
109733+
"type": {
109734+
"name": "boolean",
109735+
"namespace": "internal"
109736+
}
109737+
}
109738+
},
109739+
{
109740+
"name": "pretty",
109741+
"required": false,
109742+
"type": {
109743+
"kind": "instance_of",
109744+
"type": {
109745+
"name": "boolean",
109746+
"namespace": "internal"
109747+
}
109748+
}
109749+
},
109750+
{
109751+
"name": "human",
109752+
"required": false,
109753+
"type": {
109754+
"kind": "instance_of",
109755+
"type": {
109756+
"name": "boolean",
109757+
"namespace": "internal"
109758+
}
109759+
}
109731109760
}
109732109761
]
109733109762
},

output/typescript/types.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11462,11 +11462,12 @@ export interface WatcherSearchTransform {
1146211462
export type SearchType = 'query_then_fetch' | 'dfs_query_then_fetch'
1146311463

1146411464
export interface SearchableSnapshotsClearCacheSearchableSnapshotsClearCacheRequest extends RequestBase {
11465-
stub_a: integer
11466-
stub_b: integer
11467-
body?: {
11468-
stub_c: integer
11469-
}
11465+
index?: Indices
11466+
expand_wildcards?: ExpandWildcards
11467+
allow_no_indices?: boolean
11468+
ignore_unavailable?: boolean
11469+
pretty?: boolean
11470+
human?: boolean
1147011471
}
1147111472

1147211473
export interface SearchableSnapshotsClearCacheSearchableSnapshotsClearCacheResponse extends ResponseBase {

specification/searchable_snapshots/clear_cache/SearchableSnapshotsClearCacheRequest.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
import { RequestBase } from '@_types/Base'
21-
import { integer } from '@_types/Numeric'
21+
import { ExpandWildcards, Indices } from '@_types/common'
2222

2323
/**
2424
* @rest_spec_name searchable_snapshots.clear_cache
@@ -27,12 +27,13 @@ import { integer } from '@_types/Numeric'
2727
*/
2828
export interface SearchableSnapshotsClearCacheRequest extends RequestBase {
2929
path_parts?: {
30-
stub_a: integer
30+
index?: Indices
3131
}
3232
query_parameters?: {
33-
stub_b: integer
34-
}
35-
body?: {
36-
stub_c: integer
33+
expand_wildcards?: ExpandWildcards
34+
allow_no_indices?: boolean
35+
ignore_unavailable?: boolean
36+
pretty?: boolean
37+
human?: boolean
3738
}
3839
}

0 commit comments

Comments
 (0)