From e682c0ca5e53e8519af0e6912794740bb07a6dab Mon Sep 17 00:00:00 2001 From: Paul Hsu Date: Wed, 11 Dec 2024 15:45:49 -0800 Subject: [PATCH] Modify request body to be required. (#31844) --- specification/ai/DocumentIntelligence/routes.tsp | 4 ++-- .../stable/2024-11-30/DocumentIntelligence.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/ai/DocumentIntelligence/routes.tsp b/specification/ai/DocumentIntelligence/routes.tsp index 2a2a7ba8f876..914bee4adee0 100644 --- a/specification/ai/DocumentIntelligence/routes.tsp +++ b/specification/ai/DocumentIntelligence/routes.tsp @@ -260,7 +260,7 @@ interface DocumentModels { @doc("Analyze request parameters.") @bodyRoot - analyzeRequest?: AnalyzeDocumentRequest; + analyzeRequest: AnalyzeDocumentRequest; }, AnalyzeOperation >; @@ -299,7 +299,7 @@ interface DocumentModels { @doc("Analyze batch request parameters.") @body - analyzeBatchRequest?: AnalyzeBatchDocumentsRequest; + analyzeBatchRequest: AnalyzeBatchDocumentsRequest; }, AnalyzeBatchOperation >; diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/DocumentIntelligence.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/DocumentIntelligence.json index 3d1b10c174f7..2fe9ba69c526 100644 --- a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/DocumentIntelligence.json +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/DocumentIntelligence.json @@ -618,7 +618,7 @@ "name": "analyzeBatchRequest", "in": "body", "description": "Analyze batch request parameters.", - "required": false, + "required": true, "schema": { "$ref": "#/definitions/AnalyzeBatchDocumentsRequest" } @@ -1492,7 +1492,7 @@ "name": "analyzeRequest", "in": "body", "description": "Analyze request parameters.", - "required": false, + "required": true, "schema": { "$ref": "#/definitions/AnalyzeDocumentRequest" }