Skip to content

Commit 8e91c06

Browse files
authored
Add transform API via overlay (#2755)
1 parent f2a90e8 commit 8e91c06

File tree

3 files changed

+62497
-2
lines changed

3 files changed

+62497
-2
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: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,23 @@ 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-
14+
- target: "$.paths['/_transform/{transform_id}']['put']"
15+
description: "Update create transform operation"
16+
update:
17+
requestBody:
18+
content:
19+
application/json:
20+
examples:
21+
createTransformRequestExample1:
22+
$ref: "../../specification/transform/put_transform/examples/request/PutTransformRequestExample1.json"
23+
createTransformRequestExample2:
24+
$ref: "../../specification/transform/put_transform/examples/request/PutTransformRequestExample2.json"
25+
responses:
26+
200:
27+
content:
28+
application/json:
29+
examples:
30+
createTransformResponseExample1:
31+
$ref: "../../specification/transform/put_transform/examples/200_response/PutTransformResponseExample1.json"
32+
1533

0 commit comments

Comments
 (0)