Skip to content

Commit be07a33

Browse files
committed
run spec_test both for swagger 2 and openAPI 3
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
1 parent 16979be commit be07a33

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+113046
-240
lines changed

fixtures/azure/applicationGateway.v3.json

Lines changed: 2811 additions & 0 deletions
Large diffs are not rendered by default.

fixtures/azure/applicationSecurityGroup.v3.json

Lines changed: 442 additions & 0 deletions
Large diffs are not rendered by default.

fixtures/azure/loadBalancer.v3.json

Lines changed: 2350 additions & 0 deletions
Large diffs are not rendered by default.

fixtures/azure/network.v3.json

Lines changed: 339 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,339 @@
1+
{
2+
"openapi": "3.2.0",
3+
"info": {
4+
"title": "NetworkManagementClient",
5+
"description": "The Microsoft Azure Network management API provides a RESTful set of web services that interact with Microsoft Azure Networks service to manage your network resources. The API has entities that capture the relationship between an end user and the Microsoft Azure Networks service.",
6+
"version": "2020-04-01"
7+
},
8+
"security": [
9+
{
10+
"azure_auth": [
11+
"user_impersonation"
12+
]
13+
}
14+
],
15+
"paths": {},
16+
"servers": [
17+
{
18+
"url": "https://management.azure.com"
19+
}
20+
],
21+
"components": {
22+
"parameters": {
23+
"SubscriptionIdParameter": {
24+
"name": "subscriptionId",
25+
"in": "path",
26+
"required": true,
27+
"description": "The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.",
28+
"schema": {
29+
"type": "string"
30+
}
31+
},
32+
"ApiVersionParameter": {
33+
"name": "api-version",
34+
"in": "query",
35+
"required": true,
36+
"description": "Client API version.",
37+
"schema": {
38+
"type": "string"
39+
}
40+
},
41+
"ApiVersionVmssParameter": {
42+
"name": "api-version",
43+
"in": "query",
44+
"required": true,
45+
"x-ms-enum": {
46+
"name": "ApiVersion",
47+
"modelAsString": true
48+
},
49+
"description": "Client API version.",
50+
"schema": {
51+
"type": "string",
52+
"enum": [
53+
"2017-03-30"
54+
]
55+
}
56+
}
57+
},
58+
"securitySchemes": {
59+
"azure_auth": {
60+
"type": "oauth2",
61+
"description": "Azure Active Directory OAuth2 Flow.",
62+
"flows": {
63+
"implicit": {
64+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
65+
"scopes": {
66+
"user_impersonation": "impersonate your user account"
67+
}
68+
}
69+
}
70+
}
71+
},
72+
"schemas": {
73+
"ErrorDetails": {
74+
"properties": {
75+
"code": {
76+
"type": "string",
77+
"description": "Error code."
78+
},
79+
"target": {
80+
"type": "string",
81+
"description": "Error target."
82+
},
83+
"message": {
84+
"type": "string",
85+
"description": "Error message."
86+
}
87+
},
88+
"description": "Common error details representation."
89+
},
90+
"Error": {
91+
"properties": {
92+
"code": {
93+
"type": "string",
94+
"description": "Error code."
95+
},
96+
"message": {
97+
"type": "string",
98+
"description": "Error message."
99+
},
100+
"target": {
101+
"type": "string",
102+
"description": "Error target."
103+
},
104+
"details": {
105+
"type": "array",
106+
"items": {
107+
"$ref": "#/components/schemas/ErrorDetails"
108+
},
109+
"description": "Error details."
110+
},
111+
"innerError": {
112+
"type": "string",
113+
"description": "Inner error message."
114+
}
115+
},
116+
"description": "Common error representation."
117+
},
118+
"CloudError": {
119+
"x-ms-external": true,
120+
"properties": {
121+
"error": {
122+
"$ref": "#/components/schemas/CloudErrorBody"
123+
}
124+
},
125+
"description": "An error response from the service."
126+
},
127+
"CloudErrorBody": {
128+
"x-ms-external": true,
129+
"properties": {
130+
"code": {
131+
"type": "string",
132+
"description": "An identifier for the error. Codes are invariant and are intended to be consumed programmatically."
133+
},
134+
"message": {
135+
"type": "string",
136+
"description": "A message describing the error, intended to be suitable for display in a user interface."
137+
},
138+
"target": {
139+
"type": "string",
140+
"description": "The target of the particular error. For example, the name of the property in error."
141+
},
142+
"details": {
143+
"type": "array",
144+
"items": {
145+
"$ref": "#/components/schemas/CloudErrorBody"
146+
},
147+
"description": "A list of additional details about the error."
148+
}
149+
},
150+
"description": "An error response from the service."
151+
},
152+
"AzureAsyncOperationResult": {
153+
"properties": {
154+
"status": {
155+
"type": "string",
156+
"description": "Status of the Azure async operation.",
157+
"enum": [
158+
"InProgress",
159+
"Succeeded",
160+
"Failed"
161+
],
162+
"x-ms-enum": {
163+
"name": "NetworkOperationStatus",
164+
"modelAsString": true
165+
}
166+
},
167+
"error": {
168+
"$ref": "#/components/schemas/Error"
169+
}
170+
},
171+
"description": "The response body contains the status of the specified asynchronous operation, indicating whether it has succeeded, is in progress, or has failed. Note that this status is distinct from the HTTP status code returned for the Get Operation Status operation itself. If the asynchronous operation succeeded, the response body includes the HTTP status code for the successful request. If the asynchronous operation failed, the response body includes the HTTP status code for the failed request and error information regarding the failure."
172+
},
173+
"Resource": {
174+
"properties": {
175+
"id": {
176+
"type": "string",
177+
"description": "Resource ID."
178+
},
179+
"name": {
180+
"readOnly": true,
181+
"type": "string",
182+
"description": "Resource name."
183+
},
184+
"type": {
185+
"readOnly": true,
186+
"type": "string",
187+
"description": "Resource type."
188+
},
189+
"location": {
190+
"type": "string",
191+
"description": "Resource location."
192+
},
193+
"tags": {
194+
"type": "object",
195+
"additionalProperties": {
196+
"type": "string"
197+
},
198+
"description": "Resource tags."
199+
}
200+
},
201+
"description": "Common resource representation.",
202+
"x-ms-azure-resource": true
203+
},
204+
"SubResource": {
205+
"properties": {
206+
"id": {
207+
"type": "string",
208+
"description": "Resource ID."
209+
}
210+
},
211+
"description": "Reference to another subresource.",
212+
"x-ms-azure-resource": true
213+
},
214+
"TagsObject": {
215+
"properties": {
216+
"tags": {
217+
"type": "object",
218+
"additionalProperties": {
219+
"type": "string"
220+
},
221+
"description": "Resource tags."
222+
}
223+
},
224+
"description": "Tags object for patch operations."
225+
},
226+
"ManagedServiceIdentity": {
227+
"properties": {
228+
"principalId": {
229+
"readOnly": true,
230+
"type": "string",
231+
"description": "The principal id of the system assigned identity. This property will only be provided for a system assigned identity."
232+
},
233+
"tenantId": {
234+
"readOnly": true,
235+
"type": "string",
236+
"description": "The tenant id of the system assigned identity. This property will only be provided for a system assigned identity."
237+
},
238+
"type": {
239+
"type": "string",
240+
"description": "The type of identity used for the resource. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the virtual machine.",
241+
"enum": [
242+
"SystemAssigned",
243+
"UserAssigned",
244+
"SystemAssigned, UserAssigned",
245+
"None"
246+
],
247+
"x-ms-enum": {
248+
"name": "ResourceIdentityType",
249+
"modelAsString": false
250+
}
251+
},
252+
"userAssignedIdentities": {
253+
"type": "object",
254+
"additionalProperties": {
255+
"type": "object",
256+
"properties": {
257+
"principalId": {
258+
"readOnly": true,
259+
"type": "string",
260+
"description": "The principal id of user assigned identity."
261+
},
262+
"clientId": {
263+
"readOnly": true,
264+
"type": "string",
265+
"description": "The client id of user assigned identity."
266+
}
267+
}
268+
},
269+
"description": "The list of user identities associated with resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'."
270+
}
271+
},
272+
"description": "Identity for the resource."
273+
},
274+
"ProvisioningState": {
275+
"type": "string",
276+
"readOnly": true,
277+
"description": "The current provisioning state.",
278+
"enum": [
279+
"Succeeded",
280+
"Updating",
281+
"Deleting",
282+
"Failed"
283+
],
284+
"x-ms-enum": {
285+
"name": "ProvisioningState",
286+
"modelAsString": true
287+
}
288+
},
289+
"Access": {
290+
"type": "string",
291+
"description": "Access to be allowed or denied.",
292+
"enum": [
293+
"Allow",
294+
"Deny"
295+
],
296+
"x-ms-enum": {
297+
"name": "Access",
298+
"modelAsString": true
299+
}
300+
},
301+
"AuthenticationMethod": {
302+
"type": "string",
303+
"description": "VPN client authentication method.",
304+
"enum": [
305+
"EAPTLS",
306+
"EAPMSCHAPv2"
307+
],
308+
"x-ms-enum": {
309+
"name": "AuthenticationMethod",
310+
"modelAsString": true
311+
}
312+
},
313+
"IPAllocationMethod": {
314+
"type": "string",
315+
"description": "IP address allocation method.",
316+
"enum": [
317+
"Static",
318+
"Dynamic"
319+
],
320+
"x-ms-enum": {
321+
"name": "IPAllocationMethod",
322+
"modelAsString": true
323+
}
324+
},
325+
"IPVersion": {
326+
"type": "string",
327+
"description": "IP address version.",
328+
"enum": [
329+
"IPv4",
330+
"IPv6"
331+
],
332+
"x-ms-enum": {
333+
"name": "IPVersion",
334+
"modelAsString": true
335+
}
336+
}
337+
}
338+
}
339+
}

0 commit comments

Comments
 (0)