From 8e78b71259b056f5ff79846cf321dade34db7002 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Mon, 29 Sep 2025 11:27:41 +0400 Subject: [PATCH] Fix ml.put_trained_model API --- output/openapi/elasticsearch-openapi.json | 15 +++------------ .../openapi/elasticsearch-serverless-openapi.json | 15 +++------------ output/schema/schema.json | 6 +++--- output/typescript/types.ts | 6 +++--- specification/ml/_types/inference.ts | 6 +++--- 5 files changed, 15 insertions(+), 33 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index dd1d5fd4bf..7403498628 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -111961,10 +111961,7 @@ } ] } - }, - "required": [ - "vocabulary" - ] + } }, "ml._types.LearningToRankConfig": { "type": "object", @@ -112105,10 +112102,7 @@ } ] } - }, - "required": [ - "vocabulary" - ] + } }, "ml._types.TextExpansionInferenceOptions": { "description": "Text expansion inference options", @@ -112133,10 +112127,7 @@ } ] } - }, - "required": [ - "vocabulary" - ] + } }, "ml._types.QuestionAnsweringInferenceOptions": { "description": "Question answering inference options", diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 6605315b8f..5a0b2fe170 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -74391,10 +74391,7 @@ } ] } - }, - "required": [ - "vocabulary" - ] + } }, "ml._types.LearningToRankConfig": { "type": "object", @@ -74535,10 +74532,7 @@ } ] } - }, - "required": [ - "vocabulary" - ] + } }, "ml._types.TextExpansionInferenceOptions": { "description": "Text expansion inference options", @@ -74563,10 +74557,7 @@ } ] } - }, - "required": [ - "vocabulary" - ] + } }, "ml._types.QuestionAnsweringInferenceOptions": { "description": "Question answering inference options", diff --git a/output/schema/schema.json b/output/schema/schema.json index afc81f91dc..13d862be3c 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -196316,7 +196316,7 @@ }, { "name": "vocabulary", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -200421,7 +200421,7 @@ }, { "name": "vocabulary", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { @@ -200500,7 +200500,7 @@ }, { "name": "vocabulary", - "required": true, + "required": false, "type": { "kind": "instance_of", "type": { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index aae8e2050b..890c58dba4 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -16400,7 +16400,7 @@ export interface MlFillMaskInferenceOptions { num_top_classes?: integer tokenization?: MlTokenizationConfigContainer results_field?: string - vocabulary: MlVocabulary + vocabulary?: MlVocabulary } export interface MlFillMaskInferenceUpdateOptions { @@ -16819,7 +16819,7 @@ export interface MlTextEmbeddingInferenceOptions { embedding_size?: integer tokenization?: MlTokenizationConfigContainer results_field?: string - vocabulary: MlVocabulary + vocabulary?: MlVocabulary } export interface MlTextEmbeddingInferenceUpdateOptions { @@ -16830,7 +16830,7 @@ export interface MlTextEmbeddingInferenceUpdateOptions { export interface MlTextExpansionInferenceOptions { tokenization?: MlTokenizationConfigContainer results_field?: string - vocabulary: MlVocabulary + vocabulary?: MlVocabulary } export interface MlTextExpansionInferenceUpdateOptions { diff --git a/specification/ml/_types/inference.ts b/specification/ml/_types/inference.ts index 75aafa1f20..4f0c21caac 100644 --- a/specification/ml/_types/inference.ts +++ b/specification/ml/_types/inference.ts @@ -258,7 +258,7 @@ export class TextEmbeddingInferenceOptions { /** The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. */ results_field?: string - vocabulary: Vocabulary + vocabulary?: Vocabulary } /** Text expansion inference options */ @@ -267,7 +267,7 @@ export class TextExpansionInferenceOptions { tokenization?: TokenizationConfigContainer /** The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. */ results_field?: string - vocabulary: Vocabulary + vocabulary?: Vocabulary } /** Named entity recognition options */ @@ -295,7 +295,7 @@ export class FillMaskInferenceOptions { tokenization?: TokenizationConfigContainer /** The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value. */ results_field?: string - vocabulary: Vocabulary + vocabulary?: Vocabulary } /** Question answering inference options */