Skip to content

Commit

Permalink
Swagger Correctness (#22120)
Browse files Browse the repository at this point in the history
* Swagger Correctness

* Resolve Model Validation Error

* Resolve Model Validation error

* Resolve Model Validation Error

* Resolve Model Validation Error

* Resolve errors

* Resolve comments

* Resolved model validation errors
  • Loading branch information
sparatala authored Feb 1, 2023
1 parent e0a8a42 commit b9e0cdd
Show file tree
Hide file tree
Showing 36 changed files with 386 additions and 91 deletions.
3 changes: 2 additions & 1 deletion specification/synapse/common/v1/types.json
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@
"uploadedTimestamp": {
"type": "string",
"format": "date-time",
"description": "The last update time of the library."
"description": "The last update time of the library.",
"readOnly": true
},
"type": {
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -567,20 +567,12 @@
"minExecutors": {
"type": "integer",
"format": "int32",
"description": "The minimum number of executors alloted",
"x-ms-mutability": [
"create",
"update"
]
"description": "The minimum number of executors alloted"
},
"maxExecutors": {
"type": "integer",
"format": "int32",
"description": "The maximum number of executors alloted",
"x-ms-mutability": [
"create",
"update"
]
"description": "The maximum number of executors alloted"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
},
"responses": {
"200": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
},
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Synapse/workspaces/testserver/sqlPools/testDatabase/restorePoints/131546477590000000",
"name": "131546477590000000",
Expand All @@ -25,6 +28,9 @@
}
},
"201": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
},
"body": {
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Synapse/workspaces/testserver/sqlPools/testDatabase/restorePoints/131546477590000000",
"name": "131546477590000000",
Expand All @@ -37,6 +43,10 @@
}
}
},
"202": {}
"202": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,20 @@
"api-version": "2021-06-01-preview"
},
"responses": {
"200": {},
"202": {},
"204": {}
"200": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
}
},
"202": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
}
},
"204": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,20 @@
"api-version": "2021-06-01-preview"
},
"responses": {
"200": {},
"202": {},
"204": {}
"200": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
}
},
"202": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
}
},
"204": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,15 @@
"api-version": "2021-06-01-preview"
},
"responses": {
"200": {},
"202": {}
"200": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
}
},
"202": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
},
"connectivityEndpoints": {
"dev": "workspace1.dev.projectarcadia.net",
"sql": "workspace1.sql.projectarcadia.net"
"sql": "workspace1.sql.projectarcadia.net",
"web": "workspace1.sql.projectarcadia.net"
},
"managedVirtualNetworkSettings": {
"preventDataExfiltration": false,
Expand Down Expand Up @@ -69,6 +70,14 @@
"extraProperties": {
"IsScopeEnabled": "false",
"WorkspaceType": "Normal"
},
"azureADOnlyAuthentication": false,
"encryption": {
"cmk": {
"key": {
"keyVaultUrl": ""
}
}
}
},
"tags": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@
"nodeEnabled": "True"
},
"latestVersion": "3.7.6711.1",
"createTime": "2018-06-14T09:17:45.1839685Z"
"createTime": "2018-06-14T09:17:45.1839685Z",
"osType": 1,
"targetFramework": 0
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
},
"responses": {
"200": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
},
"body": {
"value": [
{
Expand All @@ -13,7 +16,8 @@
"resource": "resourceName",
"operation": "operationName",
"description": "operation description"
}
},
"origin": "user,system"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,20 @@
"api-version": "2021-06-01-preview"
},
"responses": {
"200": {},
"202": {},
"204": {}
"200": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
}
},
"202": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
}
},
"204": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
},
"responses": {
"200": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
},
"body": {
"value": [
{
Expand All @@ -26,6 +29,10 @@
]
}
},
"202": {}
"202": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,20 @@
"dataConnectionName": "kustoeventhubconnection1"
},
"responses": {
"200": {},
"202": {},
"204": {}
"200": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
}
},
"202": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
}
},
"204": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,20 @@
"api-version": "2021-06-01-preview"
},
"responses": {
"200": {},
"202": {},
"204": {}
"200": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
}
},
"202": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
}
},
"204": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,20 @@
"api-version": "2021-06-01-preview"
},
"responses": {
"200": {},
"202": {},
"204": {}
"200": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
}
},
"202": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
}
},
"204": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,15 @@
}
},
"responses": {
"200": {},
"202": {}
"200": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
}
},
"202": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,15 @@
}
},
"responses": {
"200": {},
"202": {}
"200": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
}
},
"202": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,15 @@
}
},
"responses": {
"200": {},
"202": {}
"200": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
}
},
"202": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,20 @@
"api-version": "2021-06-01-preview"
},
"responses": {
"200": {},
"202": {},
"204": {}
"200": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
}
},
"202": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
}
},
"204": {
"headers": {
"azure-asyncoperation": "https://ms.web.azuresynapse.net"
}
}
}
}
Loading

0 comments on commit b9e0cdd

Please sign in to comment.