Skip to content

Commit 2c60f3e

Browse files
committed
Merge overlays into shared file
1 parent 5f98fec commit 2c60f3e

File tree

4 files changed

+44
-80
lines changed

4 files changed

+44
-80
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ contrib: | generate license-check spec-format-fix transform-to-openapi filter-fo
6161

6262
overlay-docs: ## Apply overlays to OpenAPI documents
6363
@npx bump overlay "output/openapi/elasticsearch-serverless-openapi.json" "docs/overlays/elasticsearch-serverless-openapi-overlays.yaml" > "output/openapi/elasticsearch-serverless-openapi.tmp1.json"
64-
@npx bump overlay "output/openapi/elasticsearch-serverless-openapi.tmp1.json" "docs/overlays/elasticsearch-shared-example-overlays.yaml" > "output/openapi/elasticsearch-serverless-openapi.tmp2.json"
64+
@npx bump overlay "output/openapi/elasticsearch-serverless-openapi.tmp1.json" "docs/overlays/elasticsearch-shared-overlays.yaml" > "output/openapi/elasticsearch-serverless-openapi.tmp2.json"
6565
@npx @redocly/cli bundle output/openapi/elasticsearch-serverless-openapi.tmp2.json --ext json -o output/openapi/elasticsearch-serverless-openapi.examples.json
6666
@npx bump overlay "output/openapi/elasticsearch-openapi.json" "docs/overlays/elasticsearch-openapi-overlays.yaml" > "output/openapi/elasticsearch-openapi.tmp1.json"
67-
@npx bump overlay "output/openapi/elasticsearch-openapi.tmp1.json" "docs/overlays/elasticsearch-shared-example-overlays.yaml" > "output/openapi/elasticsearch-openapi.tmp2.json"
67+
@npx bump overlay "output/openapi/elasticsearch-openapi.tmp1.json" "docs/overlays/elasticsearch-shared-overlays.yaml" > "output/openapi/elasticsearch-openapi.tmp2.json"
6868
@npx @redocly/cli bundle output/openapi/elasticsearch-openapi.tmp2.json --ext json -o output/openapi/elasticsearch-openapi.examples.json
6969
rm output/openapi/elasticsearch-serverless-openapi.tmp*.json
7070
rm output/openapi/elasticsearch-openapi.tmp*.json

docs/overlays/elasticsearch-openapi-overlays.yaml

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -40,41 +40,4 @@ actions:
4040
examples:
4141
resetFeaturesResponseExample1:
4242
$ref: "../../specification/features/reset_features/ResetFeaturesResponseExample1.json"
43-
# Remove and annotate items that are not shown in Bump.sh due to depth limits
44-
- target: "$.components['schemas']['ml._types:Datafeed'].properties.query"
45-
remove: true
46-
- target: "$.components['schemas']['ml._types:Datafeed'].properties"
47-
description: Re-add a simplified query object
48-
update:
49-
query:
50-
x-abbreviated: true
51-
type: object
52-
description: >
53-
The Elasticsearch query domain-specific language (DSL).
54-
This value corresponds to the query object in an Elasticsearch search POST body.
55-
All the options that are supported by Elasticsearch can be used, as this object is passed verbatim to Elasticsearch.
56-
By default, this property has the following value: `{"match_all": {"boost": 1}}`.
57-
externalDocs:
58-
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html
59-
description: Query DSL
60-
- target: "$.components['schemas']['ml._types:CategorizationAnalyzerDefinition'].properties.tokenizer"
61-
description: Remove tokenizer object from ML anomaly detection analysis config
62-
remove: true
63-
- target: "$.components['schemas']['ml._types:CategorizationAnalyzerDefinition'].properties"
64-
description: Re-add a simplified tokenizer object in ML anomaly detection analysis config
65-
update:
66-
tokenizer:
67-
x-abbreviated: true
68-
oneOf:
69-
- type: object
70-
- type: string
71-
description: >
72-
The name or definition of the tokenizer to use after character filters are applied.
73-
This property is compulsory if `categorization_analyzer` is specified as an object.
74-
Machine learning provides a tokenizer called `ml_standard` that tokenizes in a way that has been determined to produce good categorization results on a variety of log file formats for logs in English.
75-
If you want to use that tokenizer but change the character or token filters, specify `"tokenizer": "ml_standard"` in your `categorization_analyzer`.
76-
Additionally, the `ml_classic` tokenizer is available, which tokenizes in the same way as the non-customizable tokenizer in old versions of the product (before 6.2).
77-
`ml_classic` was the default categorization tokenizer in versions 6.2 to 7.13, so if you need categorization identical to the default for jobs created in these versions, specify `"tokenizer": "ml_classic"` in your `categorization_analyzer`.
78-
externalDocs:
79-
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-tokenizers.html
80-
description: Tokenizer reference
43+

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

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -28,42 +28,3 @@ actions:
2828
description: Add x-beta
2929
update:
3030
x-beta: true
31-
# Remove and annotate items that are not shown in Bump.sh due to depth limits
32-
- target: "$.components['schemas']['ml._types:Datafeed'].properties.query"
33-
description: Remove query object from ML anomaly detection datafeed
34-
remove: true
35-
- target: "$.components['schemas']['ml._types:Datafeed'].properties"
36-
description: Re-add a simplified query object in ML anomaly detection datafeed
37-
update:
38-
query:
39-
x-abbreviated: true
40-
type: object
41-
description: >
42-
The Elasticsearch query domain-specific language (DSL).
43-
This value corresponds to the query object in an Elasticsearch search POST body.
44-
All the options that are supported by Elasticsearch can be used, as this object is passed verbatim to Elasticsearch.
45-
By default, this property has the following value: `{"match_all": {"boost": 1}}`.
46-
externalDocs:
47-
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html
48-
description: Query DSL
49-
- target: "$.components['schemas']['ml._types:CategorizationAnalyzerDefinition'].properties.tokenizer"
50-
description: Remove tokenizer object from ML anomaly detection analysis config
51-
remove: true
52-
- target: "$.components['schemas']['ml._types:CategorizationAnalyzerDefinition'].properties"
53-
description: Re-add a simplified tokenizer object in ML anomaly detection analysis config
54-
update:
55-
tokenizer:
56-
x-abbreviated: true
57-
oneOf:
58-
- type: object
59-
- type: string
60-
description: >
61-
The name or definition of the tokenizer to use after character filters are applied.
62-
This property is compulsory if `categorization_analyzer` is specified as an object.
63-
Machine learning provides a tokenizer called `ml_standard` that tokenizes in a way that has been determined to produce good categorization results on a variety of log file formats for logs in English.
64-
If you want to use that tokenizer but change the character or token filters, specify `"tokenizer": "ml_standard"` in your `categorization_analyzer`.
65-
Additionally, the `ml_classic` tokenizer is available, which tokenizes in the same way as the non-customizable tokenizer in old versions of the product (before 6.2).
66-
`ml_classic` was the default categorization tokenizer in versions 6.2 to 7.13, so if you need categorization identical to the default for jobs created in these versions, specify `"tokenizer": "ml_classic"` in your `categorization_analyzer`.
67-
externalDocs:
68-
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-tokenizers.html
69-
description: Tokenizer reference

docs/overlays/elasticsearch-shared-example-overlays.yaml renamed to docs/overlays/elasticsearch-shared-overlays.yaml

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,49 @@
11
# Overlays that are applicable to both Elasticsearch and Elasticsearch Serverless OpenAPI documents
22
overlay: 1.0.0
33
info:
4-
title: Overlays for examples that apply to both Elasticsearcb and Elasticsearch Serverless OpenAPI documents
4+
title: Overlays for changes that apply to both Elasticsearcb and Elasticsearch Serverless OpenAPI documents
55
version: 0.0.1
66
actions:
7+
# Abbreviate and annotate items that are not shown in Bump.sh due to depth limits
8+
- target: "$.components['schemas']['ml._types:Datafeed'].properties.query"
9+
description: Remove query object from ML anomaly detection datafeed
10+
remove: true
11+
- target: "$.components['schemas']['ml._types:Datafeed'].properties"
12+
description: Re-add a simplified query object in ML anomaly detection datafeed
13+
update:
14+
query:
15+
x-abbreviated: true
16+
type: object
17+
description: >
18+
The Elasticsearch query domain-specific language (DSL).
19+
This value corresponds to the query object in an Elasticsearch search POST body.
20+
All the options that are supported by Elasticsearch can be used, as this object is passed verbatim to Elasticsearch.
21+
By default, this property has the following value: `{"match_all": {"boost": 1}}`.
22+
externalDocs:
23+
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html
24+
description: Query DSL
25+
- target: "$.components['schemas']['ml._types:CategorizationAnalyzerDefinition'].properties.tokenizer"
26+
description: Remove tokenizer object from ML anomaly detection analysis config
27+
remove: true
28+
- target: "$.components['schemas']['ml._types:CategorizationAnalyzerDefinition'].properties"
29+
description: Re-add a simplified tokenizer object in ML anomaly detection analysis config
30+
update:
31+
tokenizer:
32+
x-abbreviated: true
33+
oneOf:
34+
- type: object
35+
- type: string
36+
description: >
37+
The name or definition of the tokenizer to use after character filters are applied.
38+
This property is compulsory if `categorization_analyzer` is specified as an object.
39+
Machine learning provides a tokenizer called `ml_standard` that tokenizes in a way that has been determined to produce good categorization results on a variety of log file formats for logs in English.
40+
If you want to use that tokenizer but change the character or token filters, specify `"tokenizer": "ml_standard"` in your `categorization_analyzer`.
41+
Additionally, the `ml_classic` tokenizer is available, which tokenizes in the same way as the non-customizable tokenizer in old versions of the product (before 6.2).
42+
`ml_classic` was the default categorization tokenizer in versions 6.2 to 7.13, so if you need categorization identical to the default for jobs created in these versions, specify `"tokenizer": "ml_classic"` in your `categorization_analyzer`.
43+
externalDocs:
44+
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-tokenizers.html
45+
description: Tokenizer reference
46+
# Examples
747
- target: "$.components['requestBodies']['async_search.submit']"
848
description: "Add example for asynch search submit request"
949
update:

0 commit comments

Comments
 (0)