Skip to content

Commit 8b40aac

Browse files
author
SDKAuto
committed
CodeGen from PR 16775 in Azure/azure-rest-api-specs
add type to enums to fix Linter error R3015 (#16775)
1 parent 480dffb commit 8b40aac

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

schemas/2020-10-25/Microsoft.Capacity.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,21 @@
7777
"description": "Additional properties for the specified resource provider."
7878
},
7979
"resourceType": {
80-
"type": "object",
81-
"properties": {},
80+
"oneOf": [
81+
{
82+
"type": "string",
83+
"enum": [
84+
"standard",
85+
"dedicated",
86+
"lowPriority",
87+
"shared",
88+
"serviceSpecific"
89+
]
90+
},
91+
{
92+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
93+
}
94+
],
8295
"description": "The name of the resource type."
8396
},
8497
"unit": {

0 commit comments

Comments
 (0)