Skip to content

Commit 0accdab

Browse files
tianxchen-msTianxiang Chen
andauthored
update api scenario schema (#21836)
Co-authored-by: Tianxiang Chen <[email protected]>
1 parent 9b3aa35 commit 0accdab

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

documentation/api-scenario/references/v1.2/schema.json

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,7 @@
33
"type": "object",
44
"properties": {
55
"scope": {
6-
"type": "string",
7-
"enum": [
8-
"ResourceGroup",
9-
"Subscription",
10-
"Tenant",
11-
"None"
12-
],
13-
"default": "ResourceGroup"
6+
"$ref": "#/definitions/Scope"
147
},
158
"authentication": {
169
"$ref": "#/definitions/Authentication"
@@ -134,6 +127,19 @@
134127
}
135128
]
136129
},
130+
"Scope": {
131+
"type": "string",
132+
"oneOf": [
133+
{
134+
"enum": ["ResourceGroup", "Subscription", "Tenant", "None"],
135+
"default": "ResourceGroup"
136+
},
137+
{
138+
"format": "uri-reference",
139+
"pattern": "^.+\\.(yaml|yml)$"
140+
}
141+
]
142+
},
137143
"JsonPointer": {
138144
"type": "string",
139145
"description": "JSON Pointer described by RFC 6901, e.g. /foo/bar",

0 commit comments

Comments
 (0)