Skip to content

Commit 0251195

Browse files
committed
chore: split revert to separate PR
1 parent 661e1b0 commit 0251195

File tree

7 files changed

+147
-110
lines changed

7 files changed

+147
-110
lines changed

output/openapi/elasticsearch-openapi.json

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

output/openapi/elasticsearch-serverless-openapi.json

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

output/schema/schema.json

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

output/schema/validation-errors.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"endpointErrors": {},
33
"generalErrors": [
4+
"ResponseBody is present in multiple namespaces: _global.search and ml.evaluate_data_frame",
45
"Dangling type '_global.scripts_painless_execute:PainlessExecutionPosition'",
56
"Dangling type '_global.scripts_painless_execute:PainlessScript'",
67
"Dangling type '_global.search._types:HitMetadata'",

output/typescript/types.ts

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export default defineConfig({
7878
'migration.post_feature_upgrade'
7979
],
8080
Operation: ['_global.mget', '_global.mtermvectors'],
81+
ResponseBody: ['_global.search', 'ml.evaluate_data_frame'],
8182
Phase: ['ilm._types', 'xpack.usage'],
8283
Phases: ['ilm._types', 'xpack.usage'],
8384
Pipeline: ['ingest._types', 'logstash._types'],

specification/ml/evaluate_data_frame/MlEvaluateDataFrameResponse.ts

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,24 @@ import {
2424
} from './types'
2525

2626
export class Response {
27-
body: {
28-
/**
29-
* Evaluation results for a classification analysis.
30-
* It outputs a prediction that identifies to which of the classes each document belongs.
31-
*/
32-
classification?: DataframeClassificationSummary
33-
/**
34-
* Evaluation results for an outlier detection analysis.
35-
* It outputs the probability that each document is an outlier.
36-
*/
37-
outlier_detection?: DataframeOutlierDetectionSummary
38-
/**
39-
* Evaluation results for a regression analysis which outputs a prediction of values.
40-
*/
41-
regression?: DataframeRegressionSummary
42-
}
27+
/** @codegen_name result */
28+
body: ResponseBody
29+
}
30+
31+
/** @variants container */
32+
export class ResponseBody {
33+
/**
34+
* Evaluation results for a classification analysis.
35+
* It outputs a prediction that identifies to which of the classes each document belongs.
36+
*/
37+
classification?: DataframeClassificationSummary
38+
/**
39+
* Evaluation results for an outlier detection analysis.
40+
* It outputs the probability that each document is an outlier.
41+
*/
42+
outlier_detection?: DataframeOutlierDetectionSummary
43+
/**
44+
* Evaluation results for a regression analysis which outputs a prediction of values.
45+
*/
46+
regression?: DataframeRegressionSummary
4347
}

0 commit comments

Comments
 (0)