Skip to content

Commit 2b39b51

Browse files
authored
Merge branch 'main' into user-feedback-template
2 parents cce94b8 + a00834b commit 2b39b51

File tree

182 files changed

+82407
-10347
lines changed

Some content is hidden

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

182 files changed

+82407
-10347
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ dump-routes: ## Create a new schema with all generics expanded
6060
contrib: | generate license-check spec-format-fix transform-to-openapi filter-for-serverless ## Pre contribution target
6161

6262
overlay-docs: ## Apply overlays to OpenAPI documents
63-
@npx bump overlay "output/openapi/elasticsearch-serverless-openapi.json" "docs/overlays/elasticsearch-serverless-openapi-overlays.yaml" > "output/openapi/elasticsearch-serverless-openapi.new.json"
63+
@npx bump overlay "output/openapi/elasticsearch-serverless-openapi.json" "docs/overlays/elasticsearch-serverless-openapi-overlays.yaml" > "output/openapi/elasticsearch-serverless-openapi.tmp.json"
64+
@npx @redocly/cli bundle output/openapi/elasticsearch-serverless-openapi.tmp.json --ext json -o output/openapi/elasticsearch-serverless-openapi.examples.json
65+
rm output/openapi/elasticsearch-serverless-openapi.tmp.json
6466

6567
lint-docs: ## Lint the OpenAPI documents
6668
@npx @stoplight/spectral-cli lint output/openapi/*.json --ruleset .spectral.yaml

docs/overlays/elasticsearch-serverless-openapi-overlays.yaml

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,37 @@ actions:
1111
**Technical preview**
1212
This functionality is in technical preview and may be changed or removed in a future release.
1313
Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.
14-
15-
14+
- target: "$.components['requestBodies']['async_search.submit']"
15+
description: "Add example for asynch search submit request"
16+
update:
17+
content:
18+
application/json:
19+
examples:
20+
asyncSearchSubmitResponseExample1:
21+
$ref: "../../specification/async_search/submit/AsyncSearchSubmitRequestExample1.json"
22+
- target: "$.components['responses']['async_search.submit#200']"
23+
description: "Add example for asynch search submit response"
24+
update:
25+
content:
26+
application/json:
27+
examples:
28+
asyncSearchSubmitResponseExample1:
29+
$ref: "../../specification/async_search/submit/AsyncSearchSubmitResponseExample1.json"
30+
- target: "$.paths['/_transform/{transform_id}']['put']"
31+
description: "Add examples for create transform operation"
32+
update:
33+
requestBody:
34+
content:
35+
application/json:
36+
examples:
37+
createTransformRequestExample1:
38+
$ref: "../../specification/transform/put_transform/examples/request/PutTransformRequestExample1.json"
39+
createTransformRequestExample2:
40+
$ref: "../../specification/transform/put_transform/examples/request/PutTransformRequestExample2.json"
41+
responses:
42+
200:
43+
content:
44+
application/json:
45+
examples:
46+
createTransformResponseExample1:
47+
$ref: "../../specification/transform/put_transform/examples/200_response/PutTransformResponseExample1.json"

output/openapi/elasticsearch-openapi.json

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

0 commit comments

Comments
 (0)