Skip to content

Commit 79d3ce7

Browse files
authored
[GitHubAE] Update to 1.1.4 (hash: ec8d62c96c21ee75ab5090ebcb0e8cb2) from 1.1.4 (hash: 641f344a7bc7bb9ea2648bec19e473d2)
Detected Schema changes: └─┬Components ├──[-] schemas (65901:7)❌ ├──[-] schemas (65888:7)❌ ├─┬webhook-secret-scanning-alert-reopened │ └─┬alert │ └──[M] $ref (63211:13)❌ ├─┬webhook-secret-scanning-alert-resolved │ └─┬alert │ └──[M] $ref (166393:11)❌ ├─┬webhook-secret-scanning-alert-location-created │ └─┬alert │ └──[M] $ref (63211:13)❌ ├─┬webhook-secret-scanning-alert-created │ └─┬alert │ └──[M] $ref (63211:13)❌ └─┬webhook-secret-scanning-alert-revoked └─┬alert └──[M] $ref (63211:13)❌ Date: 07/29/23 | Commit: New: etc/specs/GitHubAE/previous.spec.yaml, Original: etc/specs/GitHubAE/current.spec.yaml Document Element | Total Changes | Breaking Changes components | 7 | 7 ❌ 7 Breaking changes out of 7 INFO: Modifications: 5 INFO: Removals: 2 INFO: Breaking Removals: 2 INFO: Breaking Modifications: 5 ERROR: breaking changes discovered
1 parent aa30ada commit 79d3ce7

9 files changed

+72
-66
lines changed

etc/openapi-client-generator.state

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace ApiClients\Client\GitHubAE\Schema;
6+
7+
final readonly class SecretScanningAlertResolutionWebhook
8+
{
9+
public const SCHEMA_JSON = '{"enum":["false_positive","wont_fix","revoked","used_in_tests","pattern_deleted","pattern_edited",null],"type":["string","null"],"description":"The reason for resolving the alert."}';
10+
public const SCHEMA_TITLE = '';
11+
public const SCHEMA_DESCRIPTION = 'The reason for resolving the alert.';
12+
public const SCHEMA_EXAMPLE_DATA = '[]';
13+
14+
public function __construct()
15+
{
16+
}
17+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace ApiClients\Client\GitHubAE\Schema;
6+
7+
use ApiClients\Client\GitHubAE\Schema;
8+
use EventSauce\ObjectHydrator\MapFrom;
9+
10+
final readonly class SecretScanningAlertWebhook
11+
{
12+
public const SCHEMA_JSON = '{"type":"object","properties":{"number":{"type":"integer","description":"The security alert number.","readOnly":true},"created_at":{"type":"string","description":"The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.","format":"date-time","readOnly":true},"updated_at":{"anyOf":[{"type":"null"},{"type":"string","description":"The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.","format":"date-time","readOnly":true}]},"url":{"type":"string","description":"The REST API URL of the alert resource.","format":"uri","readOnly":true},"html_url":{"type":"string","description":"The GitHub URL of the alert resource.","format":"uri","readOnly":true},"locations_url":{"type":"string","description":"The REST API URL of the code locations for this alert.","format":"uri"},"resolution":{"enum":["false_positive","wont_fix","revoked","used_in_tests","pattern_deleted","pattern_edited",null],"type":["string","null"],"description":"The reason for resolving the alert."},"resolved_at":{"type":["string","null"],"description":"The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.","format":"date-time"},"resolved_by":{"anyOf":[{"type":"null"},{"title":"Simple User","required":["avatar_url","events_url","followers_url","following_url","gists_url","gravatar_id","html_url","id","node_id","login","organizations_url","received_events_url","repos_url","site_admin","starred_url","subscriptions_url","type","url"],"type":"object","properties":{"name":{"type":["string","null"]},"email":{"type":["string","null"]},"login":{"type":"string","examples":["octocat"]},"id":{"type":"integer","examples":[1]},"node_id":{"type":"string","examples":["MDQ6VXNlcjE="]},"avatar_url":{"type":"string","format":"uri","examples":["https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif"]},"gravatar_id":{"type":["string","null"],"examples":["41d064eb2195891e12d0413f63227ea7"]},"url":{"type":"string","format":"uri","examples":["https:\\/\\/api.github.com\\/users\\/octocat"]},"html_url":{"type":"string","format":"uri","examples":["https:\\/\\/github.com\\/octocat"]},"followers_url":{"type":"string","format":"uri","examples":["https:\\/\\/api.github.com\\/users\\/octocat\\/followers"]},"following_url":{"type":"string","examples":["https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}"]},"gists_url":{"type":"string","examples":["https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}"]},"starred_url":{"type":"string","examples":["https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}"]},"subscriptions_url":{"type":"string","format":"uri","examples":["https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions"]},"organizations_url":{"type":"string","format":"uri","examples":["https:\\/\\/api.github.com\\/users\\/octocat\\/orgs"]},"repos_url":{"type":"string","format":"uri","examples":["https:\\/\\/api.github.com\\/users\\/octocat\\/repos"]},"events_url":{"type":"string","examples":["https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}"]},"received_events_url":{"type":"string","format":"uri","examples":["https:\\/\\/api.github.com\\/users\\/octocat\\/received_events"]},"type":{"type":"string","examples":["User"]},"site_admin":{"type":"boolean"},"starred_at":{"type":"string","examples":["\\"2020-07-09T00:17:55Z\\""]}},"description":"A GitHub user."}]},"resolution_comment":{"type":["string","null"],"description":"An optional comment to resolve an alert."},"secret_type":{"type":"string","description":"The type of secret that secret scanning detected."}}}';
13+
public const SCHEMA_TITLE = '';
14+
public const SCHEMA_DESCRIPTION = '';
15+
public const SCHEMA_EXAMPLE_DATA = '{"number":6,"created_at":"1970-01-01T00:00:00+00:00","updated_at":"1970-01-01T00:00:00+00:00","url":"https:\\/\\/example.com\\/","html_url":"https:\\/\\/example.com\\/","locations_url":"https:\\/\\/example.com\\/","resolution":"pattern_edited","resolved_at":"1970-01-01T00:00:00+00:00","resolved_by":{"name":"generated","email":"generated","login":"octocat","id":1,"node_id":"MDQ6VXNlcjE=","avatar_url":"https:\\/\\/github.com\\/images\\/error\\/octocat_happy.gif","gravatar_id":"41d064eb2195891e12d0413f63227ea7","url":"https:\\/\\/api.github.com\\/users\\/octocat","html_url":"https:\\/\\/github.com\\/octocat","followers_url":"https:\\/\\/api.github.com\\/users\\/octocat\\/followers","following_url":"https:\\/\\/api.github.com\\/users\\/octocat\\/following{\\/other_user}","gists_url":"https:\\/\\/api.github.com\\/users\\/octocat\\/gists{\\/gist_id}","starred_url":"https:\\/\\/api.github.com\\/users\\/octocat\\/starred{\\/owner}{\\/repo}","subscriptions_url":"https:\\/\\/api.github.com\\/users\\/octocat\\/subscriptions","organizations_url":"https:\\/\\/api.github.com\\/users\\/octocat\\/orgs","repos_url":"https:\\/\\/api.github.com\\/users\\/octocat\\/repos","events_url":"https:\\/\\/api.github.com\\/users\\/octocat\\/events{\\/privacy}","received_events_url":"https:\\/\\/api.github.com\\/users\\/octocat\\/received_events","type":"User","site_admin":false,"starred_at":"\\"2020-07-09T00:17:55Z\\""},"resolution_comment":"generated","secret_type":"generated"}';
16+
17+
/**
18+
* number: The security alert number.
19+
* createdAt: The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.
20+
* url: The REST API URL of the alert resource.
21+
* htmlUrl: The GitHub URL of the alert resource.
22+
* locationsUrl: The REST API URL of the code locations for this alert.
23+
* resolution: The reason for resolving the alert.
24+
* resolvedAt: The time that the alert was resolved in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.
25+
* resolutionComment: An optional comment to resolve an alert.
26+
* secretType: The type of secret that secret scanning detected.
27+
*/
28+
public function __construct(public int|null $number, #[MapFrom('created_at')]
29+
public string|null $createdAt, #[MapFrom('updated_at')]
30+
public string|null $updatedAt, public string|null $url, #[MapFrom('html_url')]
31+
public string|null $htmlUrl, #[MapFrom('locations_url')]
32+
public string|null $locationsUrl, public string|null $resolution, #[MapFrom('resolved_at')]
33+
public string|null $resolvedAt, #[MapFrom('resolved_by')]
34+
public Schema\SimpleUser|null $resolvedBy, #[MapFrom('resolution_comment')]
35+
public string|null $resolutionComment, #[MapFrom('secret_type')]
36+
public string|null $secretType,)
37+
{
38+
}
39+
}

src/Schema/WebhookSecretScanningAlertCreated.php

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

src/Schema/WebhookSecretScanningAlertLocationCreated.php

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

src/Schema/WebhookSecretScanningAlertReopened.php

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

src/Schema/WebhookSecretScanningAlertResolved.php

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

src/Schema/WebhookSecretScanningAlertResolved/Alert.php

Lines changed: 0 additions & 50 deletions
This file was deleted.

src/Schema/WebhookSecretScanningAlertRevoked.php

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

0 commit comments

Comments
 (0)