Skip to content

Commit

Permalink
Fix Swagger correctness bugs. (#16280)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelkuangms authored Oct 15, 2021
1 parent 3e4feab commit cbce56c
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -360,14 +360,20 @@
"description": "source control properties",
"$ref": "#/definitions/SourceControlProperties",
"x-ms-client-flatten": true
},
"systemData": {
"description": "System data of Cluster resource",
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData",
"x-ms-client-flatten": true,
"readOnly": true
}
},
"type": "object"
},
"SourceControlProperties": {
"description": "Describes source control properties",
"properties": {
"sourceControlId": {
"id": {
"description": "The id (a Guid) of the source control",
"type": "string"
},
Expand Down Expand Up @@ -416,6 +422,14 @@
"description": "Branch name of repository.",
"type": "string"
},
"displayUrl": {
"description": "Display url of repository.",
"type": "string"
},
"deploymentLogsUrl": {
"description": "Url to access repository action logs.",
"type": "string"
},
"pathMapping": {
"description": "Dictionary of source control content type and path mapping.",
"items": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"repository": {
"url": "https://github.com/user/repo",
"branch": "master",
"displayUrl": "https://github.com/user/repo",
"pathMapping": [
{
"contentType": "AnalyticRules",
Expand All @@ -41,7 +42,7 @@
"type": "Microsoft.SecurityInsights/SourceControls",
"etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"",
"properties": {
"sourceControlId": "789e0c1f-4a3d-43ad-809c-e713b677b04a",
"id": "789e0c1f-4a3d-43ad-809c-e713b677b04a",
"displayName": "My Source Control",
"description": "this is a source control",
"repoType": "Github",
Expand All @@ -52,6 +53,8 @@
"repository": {
"url": "https://github.com/user/repo",
"branch": "master",
"displayUrl": "https://github.com/user/repo",
"deploymentLogsUrl": "https://github.com/user/repo/actions",
"pathMapping": [
{
"contentType": "AnalyticRules",
Expand All @@ -63,6 +66,14 @@
}
]
}
},
"systemData": {
"createdBy": "user1",
"createdByType": "User",
"createdAt": "2021-01-01T17:18:19.1234567Z",
"lastModifiedBy": "user2",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-01-02T17:18:19.1234567Z"
}
}
},
Expand All @@ -73,7 +84,7 @@
"type": "Microsoft.SecurityInsights/SourceControls",
"etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"",
"properties": {
"sourceControlId": "789e0c1f-4a3d-43ad-809c-e713b677b04a",
"id": "789e0c1f-4a3d-43ad-809c-e713b677b04a",
"displayName": "My Source Control",
"description": "this is a source control",
"repoType": "Github",
Expand All @@ -84,6 +95,8 @@
"repository": {
"url": "https://github.com/user/repo",
"branch": "master",
"displayUrl": "https://github.com/user/repo",
"deploymentLogsUrl": "https://github.com/user/repo/actions",
"pathMapping": [
{
"contentType": "AnalyticRules",
Expand All @@ -95,6 +108,14 @@
}
]
}
},
"systemData": {
"createdBy": "user1",
"createdByType": "User",
"createdAt": "2021-01-01T17:18:19.1234567Z",
"lastModifiedBy": "user2",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-01-02T17:18:19.1234567Z"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"type": "Microsoft.SecurityInsights/SourceControls",
"etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"",
"properties": {
"sourceControlId": "789e0c1f-4a3d-43ad-809c-e713b677b04a",
"id": "789e0c1f-4a3d-43ad-809c-e713b677b04a",
"displayName": "My Source Control",
"description": "this is a source control",
"repoType": "Github",
Expand All @@ -26,6 +26,8 @@
"repository": {
"url": "https://github.com/user/repo",
"branch": "master",
"displayUrl": "https://github.com/user/repo",
"deploymentLogsUrl": "https://github.com/user/repo/actions",
"pathMapping": [
{
"contentType": "AnalyticRules",
Expand All @@ -37,6 +39,14 @@
}
]
}
},
"systemData": {
"createdBy": "user1",
"createdByType": "User",
"createdAt": "2021-01-01T17:18:19.1234567Z",
"lastModifiedBy": "user2",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-01-02T17:18:19.1234567Z"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"type": "Microsoft.SecurityInsights/SourceControls",
"etag": "\"0300bf09-0000-0000-0000-5c37296e0000\"",
"properties": {
"sourceControlId": "789e0c1f-4a3d-43ad-809c-e713b677b04a",
"id": "789e0c1f-4a3d-43ad-809c-e713b677b04a",
"displayName": "My Source Control",
"description": "this is a source control",
"repoType": "Github",
Expand All @@ -27,6 +27,8 @@
"repository": {
"url": "https://github.com/user/repo",
"branch": "master",
"displayUrl": "https://github.com/user/repo",
"deploymentLogsUrl": "https://github.com/user/repo/actions",
"pathMapping": [
{
"contentType": "AnalyticRules",
Expand All @@ -38,6 +40,14 @@
}
]
}
},
"systemData": {
"createdBy": "user1",
"createdByType": "User",
"createdAt": "2021-01-01T17:18:19.1234567Z",
"lastModifiedBy": "user2",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-01-02T17:18:19.1234567Z"
}
}
]
Expand Down

0 comments on commit cbce56c

Please sign in to comment.