Skip to content

Commit

Permalink
Modify request body to be required. (#31844)
Browse files Browse the repository at this point in the history
  • Loading branch information
bojunehsu authored Dec 11, 2024
1 parent b6bead0 commit e682c0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions specification/ai/DocumentIntelligence/routes.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ interface DocumentModels {

@doc("Analyze request parameters.")
@bodyRoot
analyzeRequest?: AnalyzeDocumentRequest;
analyzeRequest: AnalyzeDocumentRequest;
},
AnalyzeOperation
>;
Expand Down Expand Up @@ -299,7 +299,7 @@ interface DocumentModels {

@doc("Analyze batch request parameters.")
@body
analyzeBatchRequest?: AnalyzeBatchDocumentsRequest;
analyzeBatchRequest: AnalyzeBatchDocumentsRequest;
},
AnalyzeBatchOperation
>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@
"name": "analyzeBatchRequest",
"in": "body",
"description": "Analyze batch request parameters.",
"required": false,
"required": true,
"schema": {
"$ref": "#/definitions/AnalyzeBatchDocumentsRequest"
}
Expand Down Expand Up @@ -1492,7 +1492,7 @@
"name": "analyzeRequest",
"in": "body",
"description": "Analyze request parameters.",
"required": false,
"required": true,
"schema": {
"$ref": "#/definitions/AnalyzeDocumentRequest"
}
Expand Down

0 comments on commit e682c0c

Please sign in to comment.