Skip to content

Validate searchable_snapshots.clear_cache fix #376

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 51 additions & 22 deletions output/schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -109308,22 +109308,6 @@
"attachedBehaviors": [
"CommonQueryParameters"
],
"body": {
"kind": "properties",
"properties": [
{
"name": "stub_c",
"required": true,
"type": {
"kind": "instance_of",
"type": {
"name": "integer",
"namespace": "_types"
}
}
}
]
},
"inherits": {
"type": {
"name": "RequestBase",
Expand All @@ -109337,28 +109321,73 @@
},
"path": [
{
"name": "stub_a",
"required": true,
"description": "A comma-separated list of index names",
"name": "index",
"required": false,
"type": {
"kind": "instance_of",
"type": {
"name": "integer",
"name": "Indices",
"namespace": "_types"
}
}
}
],
"query": [
{
"name": "stub_b",
"required": true,
"name": "expand_wildcards",
"required": false,
"type": {
"kind": "instance_of",
"type": {
"name": "integer",
"name": "ExpandWildcards",
"namespace": "_types"
}
}
},
{
"name": "allow_no_indices",
"required": false,
"type": {
"kind": "instance_of",
"type": {
"name": "boolean",
"namespace": "internal"
}
}
},
{
"name": "ignore_unavailable",
"required": false,
"type": {
"kind": "instance_of",
"type": {
"name": "boolean",
"namespace": "internal"
}
}
},
{
"name": "pretty",
"required": false,
"type": {
"kind": "instance_of",
"type": {
"name": "boolean",
"namespace": "internal"
}
}
},
{
"name": "human",
"required": false,
"type": {
"kind": "instance_of",
"type": {
"name": "boolean",
"namespace": "internal"
}
}
}
]
},
Expand Down
11 changes: 6 additions & 5 deletions output/typescript/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11427,11 +11427,12 @@ export interface WatcherSearchTransform {
export type SearchType = 'query_then_fetch' | 'dfs_query_then_fetch'

export interface SearchableSnapshotsClearCacheSearchableSnapshotsClearCacheRequest extends RequestBase {
stub_a: integer
stub_b: integer
body?: {
stub_c: integer
}
index?: Indices
expand_wildcards?: ExpandWildcards
allow_no_indices?: boolean
ignore_unavailable?: boolean
pretty?: boolean
human?: boolean
}

export interface SearchableSnapshotsClearCacheSearchableSnapshotsClearCacheResponse extends ResponseBase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

import { RequestBase } from '@_types/Base'
import { integer } from '@_types/Numeric'
import { ExpandWildcards, Indices } from '@_types/common'

/**
* @rest_spec_name searchable_snapshots.clear_cache
Expand All @@ -27,12 +27,13 @@ import { integer } from '@_types/Numeric'
*/
export interface SearchableSnapshotsClearCacheRequest extends RequestBase {
path_parts?: {
stub_a: integer
index?: Indices
}
query_parameters?: {
stub_b: integer
}
body?: {
stub_c: integer
expand_wildcards?: ExpandWildcards
allow_no_indices?: boolean
ignore_unavailable?: boolean
pretty?: boolean
human?: boolean
}
}