Skip to content

Commit bacf902

Browse files
authored
Update schema.json (Azure#19331)
1 parent ccbe894 commit bacf902

File tree

1 file changed

+38
-13
lines changed

1 file changed

+38
-13
lines changed

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

Lines changed: 38 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
"scope": {
66
"type": "string",
77
"enum": [
8-
"ResourceGroup"
9-
]
8+
"ResourceGroup",
9+
"None"
10+
],
11+
"default": "ResourceGroup"
1012
},
1113
"variables": {
1214
"$ref": "#/definitions/Variables"
@@ -94,13 +96,26 @@
9496
}
9597
},
9698
"then": {
97-
"properties": {
98-
"type": {},
99-
"value": {
100-
"type": "string"
99+
"anyOf": [
100+
{
101+
"properties": {
102+
"type": {},
103+
"value": {
104+
"type": "string"
105+
}
106+
},
107+
"additionalProperties": false
108+
},
109+
{
110+
"properties": {
111+
"type": {},
112+
"prefix": {
113+
"type": "string"
114+
}
115+
},
116+
"additionalProperties": false
101117
}
102-
},
103-
"additionalProperties": false
118+
]
104119
}
105120
},
106121
{
@@ -311,9 +326,11 @@
311326
},
312327
"StepRestBase": {
313328
"type": "object",
314-
"allOf": [{
315-
"$ref": "#/definitions/StepBase"
316-
}],
329+
"allOf": [
330+
{
331+
"$ref": "#/definitions/StepBase"
332+
}
333+
],
317334
"properties": {
318335
"outputVariables": {
319336
"type": "object",
@@ -369,8 +386,16 @@
369386
"type": "string"
370387
}
371388
},
372-
"body":{
373-
"type": ["object", "number", "array", "integer", "string", "boolean", "null"]
389+
"body": {
390+
"type": [
391+
"object",
392+
"number",
393+
"array",
394+
"integer",
395+
"string",
396+
"boolean",
397+
"null"
398+
]
374399
}
375400
}
376401
}

0 commit comments

Comments
 (0)