Skip to content

Commit 053e5d8

Browse files
author
Deven Chen
committed
Follow the advice from reviewer, to keep the request body optional.
1 parent bda6086 commit 053e5d8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

specification/cdn/resource-manager/Microsoft.Cdn/Cdn/RuleSet.tsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ interface RuleSets {
5353
@Azure.Core.useFinalStateVia("azure-async-operation")
5454
create is Azure.ResourceManager.Legacy.CreateOrReplaceAsync<
5555
RuleSet,
56+
OptionalRequestBody = true,
5657
Response = ArmResponse<RuleSet> | (ArmCreatedResponse<RuleSet> &
5758
ArmAsyncOperationHeader<FinalResult = RuleSet> &
5859
ArmLroLocationHeader<FinalResult = RuleSet>) | ErrorResponse

specification/cdn/resource-manager/Microsoft.Cdn/Cdn/stable/2025-12-01/openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6850,7 +6850,7 @@
68506850
"name": "resource",
68516851
"in": "body",
68526852
"description": "Resource create parameters.",
6853-
"required": true,
6853+
"required": false,
68546854
"schema": {
68556855
"$ref": "#/definitions/RuleSet"
68566856
}

0 commit comments

Comments
 (0)