Skip to content

Commit

Permalink
update api scenario schema (#21836)
Browse files Browse the repository at this point in the history
Co-authored-by: Tianxiang Chen <tianxchen@microsoft.com>
  • Loading branch information
tianxchen-ms and Tianxiang Chen authored Dec 12, 2022
1 parent 9b3aa35 commit 0accdab
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 0accdab

Please sign in to comment.