Skip to content

Commit dc0c664

Browse files
authored
update servicebus swagger required/types (#23225)
* update types for title names and required entity descriptions * make namespace title required * add default rule description to subscription description
1 parent d632c45 commit dc0c664

File tree

1 file changed

+36
-5
lines changed
  • specification/servicebus/data-plane/Microsoft.ServiceBus/stable/2021-05

1 file changed

+36
-5
lines changed

specification/servicebus/data-plane/Microsoft.ServiceBus/stable/2021-05/servicebus.json

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,9 @@
506506
"NamespacePropertiesEntry": {
507507
"description": "Represents an entry in the feed when querying namespace info",
508508
"type": "object",
509+
"required": [
510+
"title"
511+
],
509512
"properties": {
510513
"id": {
511514
"description": "The URL of the GET request",
@@ -516,7 +519,7 @@
516519
},
517520
"title": {
518521
"description": "The name of the namespace.",
519-
"type": "object",
522+
"type": "string",
520523
"xml": {
521524
"namespace": "http://www.w3.org/2005/Atom"
522525
}
@@ -538,6 +541,10 @@
538541
"content": {
539542
"description": "Information about the namespace.",
540543
"type": "object",
544+
"required": [
545+
"type",
546+
"NamespaceProperties"
547+
],
541548
"xml": {
542549
"namespace": "http://www.w3.org/2005/Atom"
543550
},
@@ -828,7 +835,7 @@
828835
},
829836
"title": {
830837
"description": "The name of the queue",
831-
"type": "object",
838+
"type": "string",
832839
"xml": {
833840
"namespace": "http://www.w3.org/2005/Atom"
834841
}
@@ -858,6 +865,10 @@
858865
"content": {
859866
"description": "The QueueDescription",
860867
"type": "object",
868+
"required": [
869+
"type",
870+
"QueueDescription"
871+
],
861872
"xml": {
862873
"namespace": "http://www.w3.org/2005/Atom"
863874
},
@@ -1203,7 +1214,7 @@
12031214
},
12041215
"title": {
12051216
"description": "The name of the topic",
1206-
"type": "object",
1217+
"type": "string",
12071218
"xml": {
12081219
"namespace": "http://www.w3.org/2005/Atom"
12091220
}
@@ -1233,6 +1244,10 @@
12331244
"content": {
12341245
"description": "The TopicDescription",
12351246
"type": "object",
1247+
"required": [
1248+
"type",
1249+
"TopicDescription"
1250+
],
12361251
"xml": {
12371252
"namespace": "http://www.w3.org/2005/Atom"
12381253
},
@@ -1351,6 +1366,14 @@
13511366
"namespace": "http://schemas.microsoft.com/netservices/2010/10/servicebus/connect"
13521367
}
13531368
},
1369+
"defaultRuleDescription": {
1370+
"description": "The default rule description.",
1371+
"$ref": "#/definitions/RuleDescription",
1372+
"xml": {
1373+
"name": "DefaultRuleDescription",
1374+
"namespace": "http://schemas.microsoft.com/netservices/2010/10/servicebus/connect"
1375+
}
1376+
},
13541377
"messageCount": {
13551378
"description": "The number of messages in the subscription.",
13561379
"type": "integer",
@@ -1461,7 +1484,7 @@
14611484
},
14621485
"title": {
14631486
"description": "The name of the subscription",
1464-
"type": "object",
1487+
"type": "string",
14651488
"xml": {
14661489
"namespace": "http://www.w3.org/2005/Atom"
14671490
}
@@ -1488,6 +1511,10 @@
14881511
"content": {
14891512
"description": "The SubscriptionDescription.",
14901513
"type": "object",
1514+
"required": [
1515+
"type",
1516+
"SubscriptionDescription"
1517+
],
14911518
"xml": {
14921519
"namespace": "http://www.w3.org/2005/Atom"
14931520
},
@@ -1864,7 +1891,7 @@
18641891
},
18651892
"title": {
18661893
"description": "The name of the rule",
1867-
"type": "object",
1894+
"type": "string",
18681895
"xml": {
18691896
"namespace": "http://www.w3.org/2005/Atom"
18701897
}
@@ -1891,6 +1918,10 @@
18911918
"content": {
18921919
"description": "The RuleDescription",
18931920
"type": "object",
1921+
"required": [
1922+
"type",
1923+
"RuleDescription"
1924+
],
18941925
"xml": {
18951926
"namespace": "http://www.w3.org/2005/Atom"
18961927
},

0 commit comments

Comments
 (0)