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" }