Skip to content

Commit 318b62b

Browse files
floberndlcawlelasticmachinel-trottadavidkyle
authored
Backport missing 9 (#3706)
* [DOCS] Fix overlay for resolve cluster (#3670) * Update specification output * uppercase enum source mode (#3676) * [DOCS] Add overlays for CCR API examples (#3672) * Update inference.update.json with the correct verb (#3688) * Update specification output * [DOCS] Convert final examples from JSON to YAML (#3692) * Update specification output * Correcting the response format for ingest simulate (#3640) * Correcting the response format for ingest simulate * code review feedback * moving error to the correct place, and adding ignored_fields * Update specification/simulate/ingest/SimulateIngestResponse.ts Co-authored-by: Laura Trotta <[email protected]> --------- Co-authored-by: Laura Trotta <[email protected]> * Update specification output * Add text_embedding_bits to inference result output (#3698) * Update specification output * Improve `Analyzer` definitions and fix various classes (#3215) * Update specification output --------- Co-authored-by: Lisa Cawley <[email protected]> Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Laura Trotta <[email protected]> Co-authored-by: David Kyle <[email protected]> Co-authored-by: Keith Massey <[email protected]> Co-authored-by: Ying Mao <[email protected]>
1 parent 6e0d406 commit 318b62b

File tree

75 files changed

+1081
-438
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+1081
-438
lines changed

docs/overlays/elasticsearch-openapi-overlays.yaml

Lines changed: 98 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,96 @@ actions:
199199
examples:
200200
resumeFollowIndexResponseExample1:
201201
$ref: "../../specification/ccr/resume_follow/examples/response/ResumeFollowIndexResponseExample1.yaml"
202+
- target: "$.paths['/{index}/_ccr/unfollow']['post']"
203+
description: "Add examples for unfollow an index"
204+
update:
205+
responses:
206+
200:
207+
content:
208+
application/json:
209+
examples:
210+
ccrUnfollowIndexResponseExample1:
211+
$ref: "../../specification/ccr/unfollow/examples/response/UnfollowIndexResponseExample1.yaml"
212+
- target: "$.paths['/_ccr/stats']['get']"
213+
description: "Add examples for get ccr stats"
214+
update:
215+
responses:
216+
200:
217+
content:
218+
application/json:
219+
examples:
220+
ccrStatsResponseExample1:
221+
$ref: "../../specification/ccr/stats/examples/response/CcrStatsResponseExample1.yaml"
222+
- target: "$.paths['/_ccr/auto_follow/{name}/resume']['post']"
223+
description: "Add examples for resume auto-follow pattern"
224+
update:
225+
responses:
226+
200:
227+
content:
228+
application/json:
229+
examples:
230+
ccrResumeAutoFollowResponseExample1:
231+
$ref: "../../specification/ccr/resume_auto_follow_pattern/examples/response/ResumeAutoFollowPatternResponseExample1.yaml"
232+
- target: "$.paths['/{index}/_ccr/pause_follow']['post']"
233+
description: "Add examples for resume auto-follow pattern"
234+
update:
235+
responses:
236+
200:
237+
content:
238+
application/json:
239+
examples:
240+
ccrPauseFollowResponseExample1:
241+
$ref: "../../specification/ccr/pause_follow/examples/response/PauseFollowIndexResponseExample1.yaml"
242+
- target: "$.paths['/_ccr/auto_follow/{name}/pause']['post']"
243+
description: "Add examples for pause auto-follow pattern"
244+
update:
245+
responses:
246+
200:
247+
content:
248+
application/json:
249+
examples:
250+
ccrPauseAutoFollowPatternResponseExample1:
251+
$ref: "../../specification/ccr/pause_auto_follow_pattern/examples/response/PauseAutoFollowPatternResponseExample1.yaml"
252+
- target: "$.components['responses']['ccr.get_auto_follow_pattern#200']"
253+
description: "Add examples for get auto-follow pattern"
254+
update:
255+
content:
256+
application/json:
257+
examples:
258+
ccrPauseAutoFollowPatternResponseExample1:
259+
$ref: "../../specification/ccr/get_auto_follow_pattern/examples/response/GetAutoFollowPatternResponseExample1.yaml"
260+
- target: "$.paths['/{index}/_ccr/stats']['get']"
261+
description: "Add examples for get follower stats"
262+
update:
263+
responses:
264+
200:
265+
content:
266+
application/json:
267+
examples:
268+
ccrFollowerStatsResponseExample1:
269+
$ref: "../../specification/ccr/follow_stats/examples/response/FollowIndexStatsResponseExample1.yaml"
270+
- target: "$.paths['/{index}/_ccr/info']['get']"
271+
description: "Add examples for get follower info"
272+
update:
273+
responses:
274+
200:
275+
content:
276+
application/json:
277+
examples:
278+
ccrFollowerInfoResponseExample1:
279+
$ref: "../../specification/ccr/follow_info/examples/response/FollowInfoResponseExample1.yaml"
280+
ccrFollowerInfoResponseExample2:
281+
$ref: "../../specification/ccr/follow_info/examples/response/FollowInfoResponseExample2.yaml"
282+
- target: "$.paths['/_ccr/auto_follow/{name}']['delete']"
283+
description: "Add examples for delete auto follow pattern"
284+
update:
285+
responses:
286+
200:
287+
content:
288+
application/json:
289+
examples:
290+
ccrAutoFollowPatternDeleteResponseExample1:
291+
$ref: "../../specification/ccr/delete_auto_follow_pattern/examples/response/DeleteAutoFollowPatternResponseExample1.yaml"
202292
## Examples for cluster
203293
- target: "$.components['requestBodies']['cluster.allocation_explain']"
204294
description: "Add examples for cluster allocation explain operation"
@@ -493,16 +583,16 @@ actions:
493583
examples:
494584
getIndicesRecoveryResponseExample1:
495585
$ref: "../../specification/indices/recovery/examples/200_response/indicesRecoveryResponseExample1.yaml"
496-
- target: "$.paths['/_resolve/cluster/{name}']['get']"
586+
- target: "$.components['responses']['indices.resolve_cluster#200']"
497587
description: "Add examples for resolve cluster operation"
498588
update:
499-
responses:
500-
200:
501-
content:
502-
application/json:
503-
examples:
504-
resolveClusterResponseExample1:
505-
$ref: "../../specification/indices/resolve_cluster/examples/200_response/ResolveClusterResponseExample1.yaml"
589+
content:
590+
application/json:
591+
examples:
592+
resolveClusterResponseExample1:
593+
$ref: "../../specification/indices/resolve_cluster/examples/200_response/ResolveClusterResponseExample1.yaml"
594+
resolveClusterResponseExample2:
595+
$ref: "../../specification/indices/resolve_cluster/examples/200_response/ResolveClusterResponseExample2.yaml"
506596
- target: "$.components['requestBodies']['indices.shrink']"
507597
description: "Add example for shrink index request"
508598
update:

docs/overlays/elasticsearch-shared-overlays.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2463,6 +2463,30 @@ actions:
24632463
examples:
24642464
asyncSearchSubmitResponseExample1:
24652465
$ref: "../../specification/async_search/submit/examples/response/AsyncSearchSubmitResponseExample1.yaml"
2466+
- target: "$.paths['/_async_search/status/{id}']['get']"
2467+
description: "Add examples for get async search status"
2468+
update:
2469+
responses:
2470+
200:
2471+
content:
2472+
application/json:
2473+
examples:
2474+
asyncSearchStatusResponseExample1:
2475+
$ref: "../../specification/async_search/status/examples/response/AsyncSearchStatusResponseExample1.yaml"
2476+
asyncSearchStatusResponseExample2:
2477+
$ref: "../../specification/async_search/status/examples/response/AsyncSearchStatusResponseExample2.yaml"
2478+
asyncSearchStatusResponseExample3:
2479+
$ref: "../../specification/async_search/status/examples/response/AsyncSearchStatusResponseExample3.yaml"
2480+
- target: "$.paths['/_async_search/{id}']['get']"
2481+
description: "Add examples for get async search"
2482+
update:
2483+
responses:
2484+
200:
2485+
content:
2486+
application/json:
2487+
examples:
2488+
asyncSearchResponseExample1:
2489+
$ref: "../../specification/async_search/get/examples/response/AsyncSearchGetResponseExample1.yaml"
24662490
## Examples for search applications
24672491
- target: "$.paths['/_application/search_application']['get']"
24682492
description: "Add examples for get search applications operation"

0 commit comments

Comments
 (0)