diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 906103ae4c..d02bea4124 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -21173,11 +21173,13 @@ "items": { "$ref": "#/components/schemas/migration.post_feature_upgrade:MigrationFeature" } + }, + "reason": { + "type": "string" } }, "required": [ - "accepted", - "features" + "accepted" ] }, "examples": { diff --git a/output/schema/schema.json b/output/schema/schema.json index fcd8be0c3b..c4e2866acd 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -164931,7 +164931,7 @@ } } ], - "specLocation": "migration/post_feature_upgrade/PostFeatureUpgradeResponse.ts#L27-L29" + "specLocation": "migration/post_feature_upgrade/PostFeatureUpgradeResponse.ts#L28-L30" }, { "kind": "request", @@ -164974,7 +164974,7 @@ }, { "name": "features", - "required": true, + "required": false, "type": { "kind": "array_of", "value": { @@ -164985,6 +164985,17 @@ } } } + }, + { + "name": "reason", + "required": false, + "type": { + "kind": "instance_of", + "type": { + "name": "string", + "namespace": "_builtins" + } + } } ] }, @@ -164998,7 +165009,7 @@ "name": "Response", "namespace": "migration.post_feature_upgrade" }, - "specLocation": "migration/post_feature_upgrade/PostFeatureUpgradeResponse.ts#L20-L25" + "specLocation": "migration/post_feature_upgrade/PostFeatureUpgradeResponse.ts#L20-L26" }, { "kind": "interface", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 68d1a8ffeb..bb0185bfa0 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -14682,7 +14682,8 @@ export interface MigrationPostFeatureUpgradeRequest extends RequestBase { export interface MigrationPostFeatureUpgradeResponse { accepted: boolean - features: MigrationPostFeatureUpgradeMigrationFeature[] + features?: MigrationPostFeatureUpgradeMigrationFeature[] + reason?: string } export interface MlAdaptiveAllocationsSettings { diff --git a/specification/migration/post_feature_upgrade/PostFeatureUpgradeResponse.ts b/specification/migration/post_feature_upgrade/PostFeatureUpgradeResponse.ts index 4007fd899b..6c5602ae30 100644 --- a/specification/migration/post_feature_upgrade/PostFeatureUpgradeResponse.ts +++ b/specification/migration/post_feature_upgrade/PostFeatureUpgradeResponse.ts @@ -20,7 +20,8 @@ export class Response { body: { accepted: boolean - features: MigrationFeature[] + features?: MigrationFeature[] + reason?: string } }