Skip to content

Commit 2fdf049

Browse files
authored
fix: revert changes to MlEvaluateDataFrameResponse from #5622 (#5648)
* removes duplicated `ResponseBody` * moves body back to `Response` * removes `@variants: container` from Response
1 parent 66d3bb6 commit 2fdf049

File tree

6 files changed

+110
-146
lines changed

6 files changed

+110
-146
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 27 additions & 32 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: 27 additions & 32 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: 39 additions & 58 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: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"endpointErrors": {},
33
"generalErrors": [
4-
"ResponseBody is present in multiple namespaces: _global.search and ml.evaluate_data_frame",
54
"Dangling type '_global.scripts_painless_execute:PainlessExecutionPosition'",
65
"Dangling type '_global.scripts_painless_execute:PainlessScript'",
76
"Dangling type '_global.search._types:HitMetadata'",

output/typescript/types.ts

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

specification/ml/evaluate_data_frame/MlEvaluateDataFrameResponse.ts

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

2626
export class Response {
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
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+
}
4743
}

0 commit comments

Comments
 (0)