Skip to content

Commit

Permalink
update api scenario schema (Azure#21836)
Browse files Browse the repository at this point in the history
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
  • Loading branch information
2 people authored and kayousef committed Dec 21, 2022
1 parent 90ac749 commit 808c753
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions documentation/api-scenario/references/v1.2/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,7 @@
"type": "object",
"properties": {
"scope": {
"type": "string",
"enum": [
"ResourceGroup",
"Subscription",
"Tenant",
"None"
],
"default": "ResourceGroup"
"$ref": "#/definitions/Scope"
},
"authentication": {
"$ref": "#/definitions/Authentication"
Expand Down Expand Up @@ -134,6 +127,19 @@
}
]
},
"Scope": {
"type": "string",
"oneOf": [
{
"enum": ["ResourceGroup", "Subscription", "Tenant", "None"],
"default": "ResourceGroup"
},
{
"format": "uri-reference",
"pattern": "^.+\\.(yaml|yml)$"
}
]
},
"JsonPointer": {
"type": "string",
"description": "JSON Pointer described by RFC 6901, e.g. /foo/bar",
Expand Down

0 comments on commit 808c753

Please sign in to comment.