Skip to content

Commit fb9b201

Browse files
committed
Remove invalid query parameters from CreateRequest
1 parent 1a89e44 commit fb9b201

File tree

6 files changed

+15
-184
lines changed

6 files changed

+15
-184
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 7 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 7 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 1 addition & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
{
22
"endpointErrors": {
3-
"create": {
4-
"request": [
5-
"Request: query parameter 'if_primary_term' does not exist in the json spec",
6-
"Request: query parameter 'if_seq_no' does not exist in the json spec",
7-
"Request: query parameter 'op_type' does not exist in the json spec"
8-
],
9-
"response": []
10-
},
113
"esql.async_query_get": {
124
"request": [
135
"Request: query parameter 'format' does not exist in the json spec"

output/typescript/types.ts

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_global/create/CreateRequest.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,12 @@ import { RequestBase } from '@_types/Base'
2121
import {
2222
Id,
2323
IndexName,
24-
OpType,
2524
Refresh,
2625
Routing,
27-
SequenceNumber,
2826
VersionNumber,
2927
VersionType,
3028
WaitForActiveShards
3129
} from '@_types/common'
32-
import { long } from '@_types/Numeric'
3330
import { Duration } from '@_types/Time'
3431

3532
/**
@@ -134,30 +131,11 @@ export interface Request<TDocument> extends RequestBase {
134131
index: IndexName
135132
}
136133
query_parameters: {
137-
/**
138-
* Only perform the operation if the document has this primary term.
139-
* @ext_doc_id optimistic-concurrency
140-
*/
141-
if_primary_term?: long
142-
/**
143-
* Only perform the operation if the document has this sequence number.
144-
* @ext_doc_id optimistic-concurrency
145-
*/
146-
if_seq_no?: SequenceNumber
147134
/**
148135
* True or false if to include the document source in the error message in case of parsing errors.
149136
* @server_default true
150137
*/
151138
include_source_on_error?: boolean
152-
/**
153-
* Set to `create` to only index the document if it does not already exist (put if absent).
154-
* If a document with the specified `_id` already exists, the indexing operation will fail.
155-
* The behavior is the same as using the `<index>/_create` endpoint.
156-
* If a document ID is specified, this paramater defaults to `index`.
157-
* Otherwise, it defaults to `create`.
158-
* If the request targets a data stream, an `op_type` of `create` is required.
159-
*/
160-
op_type?: OpType
161139
/**
162140
* The ID of the pipeline to use to preprocess incoming documents.
163141
* If the index has a default ingest pipeline specified, setting the value to `_none` turns off the default ingest pipeline for this request.

0 commit comments

Comments
 (0)