Skip to content

Commit 297b752

Browse files
authored
[Media] New required property and descriptions (#12292)
* minor changes to swagger * reverting sdk definitions file * adding nodename to required to correct constructors and adding descriptions * setting modelAsString to true * adding missed description
1 parent 50b8835 commit 297b752

File tree

2 files changed

+33
-17
lines changed

2 files changed

+33
-17
lines changed

specification/mediaservices/data-plane/LiveVideoAnalytics.Edge/preview/2.0.0/LiveVideoAnalytics.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
"description": "The media graph instance is transitioning into the inactive state."
8989
}
9090
],
91-
"modelAsString": false
91+
"modelAsString": true
9292
}
9393
}
9494
},
@@ -265,7 +265,7 @@
265265
"description": "A boolean value that is either true or false."
266266
}
267267
],
268-
"modelAsString": false
268+
"modelAsString": true
269269
}
270270
},
271271
"description": {
@@ -569,6 +569,9 @@
569569
},
570570
"MediaGraphNodeInput": {
571571
"type": "object",
572+
"required": [
573+
"nodeName"
574+
],
572575
"properties": {
573576
"nodeName": {
574577
"type": "string",
@@ -601,7 +604,7 @@
601604
"description": "The stream's MIME type or subtype."
602605
}
603606
],
604-
"modelAsString": false
607+
"modelAsString": true
605608
}
606609
},
607610
"operator": {
@@ -623,7 +626,7 @@
623626
"description": "A media type is not the same type or a subtype."
624627
}
625628
],
626-
"modelAsString": false
629+
"modelAsString": true
627630
}
628631
},
629632
"value": {

specification/mediaservices/data-plane/LiveVideoAnalytics.Edge/preview/2.0.0/LiveVideoAnalyticsSdkDefinitions.json

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
}
4646
}
4747
},
48-
"discriminator": "methodName"
48+
"discriminator": "methodName",
49+
"description": "Base Class for Method Requests."
4950
},
5051
"MediaGraphTopologySetRequest": {
5152
"type": "object",
@@ -62,7 +63,8 @@
6263
"graph": {
6364
"$ref": "./LiveVideoAnalytics.json#/definitions/MediaGraphTopology"
6465
}
65-
}
66+
},
67+
"description": "Represents the MediaGraphTopologySetRequest."
6668
},
6769
"MediaGraphTopologySetRequestBody": {
6870
"type": "object",
@@ -73,7 +75,8 @@
7375
{
7476
"$ref": "./LiveVideoAnalytics.json#/definitions/MediaGraphTopology"
7577
}
76-
]
78+
],
79+
"description": "Represents the MediaGraphTopologySetRequest body."
7780
},
7881
"MediaGraphInstanceSetRequest": {
7982
"type": "object",
@@ -90,7 +93,8 @@
9093
"instance": {
9194
"$ref": "./LiveVideoAnalytics.json#/definitions/MediaGraphInstance"
9295
}
93-
}
96+
},
97+
"description": "Represents the MediaGraphInstanceSetRequest."
9498
},
9599
"MediaGraphInstanceSetRequestBody": {
96100
"type": "object",
@@ -101,7 +105,8 @@
101105
{
102106
"$ref": "./LiveVideoAnalytics.json#/definitions/MediaGraphInstance"
103107
}
104-
]
108+
],
109+
"description": "Represents the MediaGraphInstanceSetRequest body."
105110
},
106111
"ItemNonSetRequestBase": {
107112
"type": "object",
@@ -127,7 +132,8 @@
127132
{
128133
"$ref": "#/definitions/MethodRequest"
129134
}
130-
]
135+
],
136+
"description": "Represents the MediaGraphTopologyListRequest."
131137
},
132138
"MediaGraphTopologyGetRequest": {
133139
"type": "object",
@@ -136,7 +142,8 @@
136142
{
137143
"$ref": "#/definitions/ItemNonSetRequestBase"
138144
}
139-
]
145+
],
146+
"description": "Represents the MediaGraphTopologyGetRequest."
140147
},
141148
"MediaGraphTopologyDeleteRequest": {
142149
"type": "object",
@@ -145,7 +152,8 @@
145152
{
146153
"$ref": "#/definitions/ItemNonSetRequestBase"
147154
}
148-
]
155+
],
156+
"description": "Represents the MediaGraphTopologyDeleteRequest."
149157
},
150158
"MediaGraphInstanceListRequest": {
151159
"type": "object",
@@ -154,7 +162,8 @@
154162
{
155163
"$ref": "#/definitions/MethodRequest"
156164
}
157-
]
165+
],
166+
"description": "Represents the MediaGraphInstanceListRequest."
158167
},
159168
"MediaGraphInstanceGetRequest": {
160169
"type": "object",
@@ -163,7 +172,8 @@
163172
{
164173
"$ref": "#/definitions/ItemNonSetRequestBase"
165174
}
166-
]
175+
],
176+
"description": "Represents the MediaGraphInstanceGetRequest."
167177
},
168178
"MediaGraphInstanceActivateRequest": {
169179
"type": "object",
@@ -172,7 +182,8 @@
172182
{
173183
"$ref": "#/definitions/ItemNonSetRequestBase"
174184
}
175-
]
185+
],
186+
"description": "Represents the MediaGraphInstanceActivateRequest."
176187
},
177188
"MediaGraphInstanceDeActivateRequest": {
178189
"type": "object",
@@ -181,7 +192,8 @@
181192
{
182193
"$ref": "#/definitions/ItemNonSetRequestBase"
183194
}
184-
]
195+
],
196+
"description": "Represents the MediaGraphInstanceDeactivateRequest."
185197
},
186198
"MediaGraphInstanceDeleteRequest": {
187199
"type": "object",
@@ -190,7 +202,8 @@
190202
{
191203
"$ref": "#/definitions/ItemNonSetRequestBase"
192204
}
193-
]
205+
],
206+
"description": "Represents the MediaGraphInstanceDeleteRequest."
194207
}
195208
}
196209
}

0 commit comments

Comments
 (0)