Skip to content

Commit 2682c91

Browse files
authored
Update Blueprints swagger files for live validation linter errors (#11918)
1 parent 7b34c62 commit 2682c91

File tree

3 files changed

+135
-1
lines changed

3 files changed

+135
-1
lines changed

specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/assignmentOperation.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@
6666
"schema": {
6767
"$ref": "#/definitions/AssignmentOperationList"
6868
}
69+
},
70+
"default": {
71+
"description": "Blueprints error response.",
72+
"schema": {
73+
"$ref": "blueprintDefinition.json#/definitions/CloudError"
74+
}
6975
}
7076
},
7177
"x-ms-pageable": {
@@ -108,6 +114,12 @@
108114
"schema": {
109115
"$ref": "#/definitions/AssignmentOperation"
110116
}
117+
},
118+
"default": {
119+
"description": "Blueprints error response.",
120+
"schema": {
121+
"$ref": "blueprintDefinition.json#/definitions/CloudError"
122+
}
111123
}
112124
}
113125
}

specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/blueprintAssignment.json

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@
8181
"schema": {
8282
"$ref": "#/definitions/Assignment"
8383
}
84+
},
85+
"default": {
86+
"description": "Blueprints error response.",
87+
"schema": {
88+
"$ref": "blueprintDefinition.json#/definitions/CloudError"
89+
}
8490
}
8591
}
8692
},
@@ -115,6 +121,12 @@
115121
"schema": {
116122
"$ref": "#/definitions/Assignment"
117123
}
124+
},
125+
"default": {
126+
"description": "Blueprints error response.",
127+
"schema": {
128+
"$ref": "blueprintDefinition.json#/definitions/CloudError"
129+
}
118130
}
119131
}
120132
},
@@ -173,11 +185,17 @@
173185
},
174186
"204": {
175187
"description": "No Content"
188+
},
189+
"default": {
190+
"description": "Blueprints error response.",
191+
"schema": {
192+
"$ref": "blueprintDefinition.json#/definitions/CloudError"
193+
}
176194
}
177195
}
178196
}
179197
},
180-
"/{resourceScope}/providers/Microsoft.Blueprint/blueprintAssignments/{assignmentName}/WhoIsBlueprint": {
198+
"/{resourceScope}/providers/Microsoft.Blueprint/blueprintAssignments/{assignmentName}/whoIsBlueprint": {
181199
"post": {
182200
"operationId": "Assignments_WhoIsBlueprint",
183201
"description": "Get Blueprints service SPN objectId",
@@ -206,6 +224,12 @@
206224
"schema": {
207225
"$ref": "#/definitions/WhoIsBlueprintContract"
208226
}
227+
},
228+
"default": {
229+
"description": "Blueprints error response.",
230+
"schema": {
231+
"$ref": "blueprintDefinition.json#/definitions/CloudError"
232+
}
209233
}
210234
}
211235
}
@@ -239,6 +263,12 @@
239263
"schema": {
240264
"$ref": "#/definitions/AssignmentList"
241265
}
266+
},
267+
"default": {
268+
"description": "Blueprints error response.",
269+
"schema": {
270+
"$ref": "blueprintDefinition.json#/definitions/CloudError"
271+
}
242272
}
243273
},
244274
"x-ms-pageable": {

specification/blueprint/resource-manager/Microsoft.Blueprint/preview/2018-11-01-preview/blueprintDefinition.json

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@
7878
"schema": {
7979
"$ref": "#/definitions/Blueprint"
8080
}
81+
},
82+
"default": {
83+
"description": "Blueprints error response.",
84+
"schema": {
85+
"$ref": "#/definitions/CloudError"
86+
}
8187
}
8288
}
8389
},
@@ -112,6 +118,12 @@
112118
"schema": {
113119
"$ref": "#/definitions/Blueprint"
114120
}
121+
},
122+
"default": {
123+
"description": "Blueprints error response.",
124+
"schema": {
125+
"$ref": "#/definitions/CloudError"
126+
}
115127
}
116128
}
117129
},
@@ -149,6 +161,12 @@
149161
},
150162
"204": {
151163
"description": "No Content"
164+
},
165+
"default": {
166+
"description": "Blueprints error response.",
167+
"schema": {
168+
"$ref": "#/definitions/CloudError"
169+
}
152170
}
153171
}
154172
}
@@ -182,6 +200,12 @@
182200
"schema": {
183201
"$ref": "#/definitions/BlueprintList"
184202
}
203+
},
204+
"default": {
205+
"description": "Blueprints error response.",
206+
"schema": {
207+
"$ref": "#/definitions/CloudError"
208+
}
185209
}
186210
},
187211
"x-ms-pageable": {
@@ -245,6 +269,12 @@
245269
"schema": {
246270
"$ref": "#/definitions/Artifact"
247271
}
272+
},
273+
"default": {
274+
"description": "Blueprints error response.",
275+
"schema": {
276+
"$ref": "#/definitions/CloudError"
277+
}
248278
}
249279
}
250280
},
@@ -294,6 +324,12 @@
294324
"schema": {
295325
"$ref": "#/definitions/Artifact"
296326
}
327+
},
328+
"default": {
329+
"description": "Blueprints error response.",
330+
"schema": {
331+
"$ref": "#/definitions/CloudError"
332+
}
297333
}
298334
}
299335
},
@@ -346,6 +382,12 @@
346382
},
347383
"204": {
348384
"description": "No Content"
385+
},
386+
"default": {
387+
"description": "Blueprints error response.",
388+
"schema": {
389+
"$ref": "#/definitions/CloudError"
390+
}
349391
}
350392
}
351393
}
@@ -382,6 +424,12 @@
382424
"schema": {
383425
"$ref": "#/definitions/ArtifactList"
384426
}
427+
},
428+
"default": {
429+
"description": "Blueprints error response.",
430+
"schema": {
431+
"$ref": "#/definitions/CloudError"
432+
}
385433
}
386434
},
387435
"x-ms-pageable": {
@@ -433,6 +481,12 @@
433481
"schema": {
434482
"$ref": "#/definitions/PublishedBlueprint"
435483
}
484+
},
485+
"default": {
486+
"description": "Blueprints error response.",
487+
"schema": {
488+
"$ref": "#/definitions/CloudError"
489+
}
436490
}
437491
}
438492
},
@@ -470,6 +524,12 @@
470524
"schema": {
471525
"$ref": "#/definitions/PublishedBlueprint"
472526
}
527+
},
528+
"default": {
529+
"description": "Blueprints error response.",
530+
"schema": {
531+
"$ref": "#/definitions/CloudError"
532+
}
473533
}
474534
}
475535
},
@@ -510,6 +570,12 @@
510570
},
511571
"204": {
512572
"description": "No Content"
573+
},
574+
"default": {
575+
"description": "Blueprints error response.",
576+
"schema": {
577+
"$ref": "#/definitions/CloudError"
578+
}
513579
}
514580
}
515581
}
@@ -546,6 +612,12 @@
546612
"schema": {
547613
"$ref": "#/definitions/PublishedBlueprintList"
548614
}
615+
},
616+
"default": {
617+
"description": "Blueprints error response.",
618+
"schema": {
619+
"$ref": "#/definitions/CloudError"
620+
}
549621
}
550622
},
551623
"x-ms-pageable": {
@@ -603,6 +675,12 @@
603675
"schema": {
604676
"$ref": "#/definitions/Artifact"
605677
}
678+
},
679+
"default": {
680+
"description": "Blueprints error response.",
681+
"schema": {
682+
"$ref": "#/definitions/CloudError"
683+
}
606684
}
607685
}
608686
}
@@ -642,6 +720,12 @@
642720
"schema": {
643721
"$ref": "#/definitions/ArtifactList"
644722
}
723+
},
724+
"default": {
725+
"description": "Blueprints error response.",
726+
"schema": {
727+
"$ref": "#/definitions/CloudError"
728+
}
645729
}
646730
},
647731
"x-ms-pageable": {
@@ -1300,6 +1384,14 @@
13001384
"description": "Last modified time of this blueprint definition."
13011385
}
13021386
}
1387+
},
1388+
"CloudError": {
1389+
"x-ms-external": true,
1390+
"properties": {
1391+
"error": {
1392+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse"
1393+
}
1394+
}
13031395
}
13041396
},
13051397
"parameters": {

0 commit comments

Comments
 (0)