Skip to content

Commit

Permalink
Merge branch 'main' into szabosteve/ml-api-sum
Browse files Browse the repository at this point in the history
  • Loading branch information
szabosteve authored Aug 9, 2024
2 parents 2ab1522 + 330429a commit b793075
Show file tree
Hide file tree
Showing 30 changed files with 63,350 additions and 96 deletions.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ dump-routes: ## Create a new schema with all generics expanded
contrib: | generate license-check spec-format-fix transform-to-openapi filter-for-serverless ## Pre contribution target

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

lint-docs: ## Lint the OpenAPI documents
@npx @stoplight/spectral-cli lint output/openapi/*.json --ruleset .spectral.yaml
Expand Down
20 changes: 19 additions & 1 deletion docs/overlays/elasticsearch-serverless-openapi-overlays.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,23 @@ actions:
**Technical preview**
This functionality is in technical preview and may be changed or removed in a future release.
Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.
- target: "$.paths['/_transform/{transform_id}']['put']"
description: "Update create transform operation"
update:
requestBody:
content:
application/json:
examples:
createTransformRequestExample1:
$ref: "../../specification/transform/put_transform/examples/request/PutTransformRequestExample1.json"
createTransformRequestExample2:
$ref: "../../specification/transform/put_transform/examples/request/PutTransformRequestExample2.json"
responses:
200:
content:
application/json:
examples:
createTransformResponseExample1:
$ref: "../../specification/transform/put_transform/examples/200_response/PutTransformResponseExample1.json"


170 changes: 160 additions & 10 deletions output/openapi/elasticsearch-openapi.json

Large diffs are not rendered by default.

Loading

0 comments on commit b793075

Please sign in to comment.