Skip to content

Commit

Permalink
Update resolve index missing type definition (#2856)
Browse files Browse the repository at this point in the history
* Update resolve index missing type definition

* Add allow_no_indices

* Fix Markdown syntax in allow_no_indices

* Run make contrib

---------

Co-authored-by: Quentin Pradet <[email protected]>
  • Loading branch information
mohamedhamed-ahmed and pquentin authored Sep 4, 2024
1 parent 474e637 commit f24570e
Show file tree
Hide file tree
Showing 7 changed files with 115 additions and 2 deletions.
20 changes: 20 additions & 0 deletions output/openapi/elasticsearch-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions output/openapi/elasticsearch-serverless-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 27 additions & 1 deletion output/schema/schema-serverless.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 27 additions & 1 deletion output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions output/schema/validation-errors.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions specification/indices/resolve_index/ResolveIndexRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,17 @@ export interface Request extends RequestBase {
* @server_default open
*/
expand_wildcards?: ExpandWildcards
/**
* If `false`, the request returns an error if it targets a missing or closed index.
* @server_default false
*/
ignore_unavailable?: boolean
/**
* If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.
* This behavior applies even if the request targets other open indices.
* For example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`.
* @server_default true
*/
allow_no_indices?: boolean
}
}

0 comments on commit f24570e

Please sign in to comment.