Skip to content

Commit 50b808b

Browse files
authored
Merge pull request #1165 from php-api-clients/GitHub/from-1.1.4-ed43ce3c2a6bf973841dfa10ad4655d5-from-1.1.4-ed43ce3c2a6bf973841dfa10ad4655d5
2 parents e88f53f + 1b998d1 commit 50b808b

File tree

37 files changed

+1719
-61
lines changed

37 files changed

+1719
-61
lines changed

clients/GitHub/etc/openapi-client-generator.state

Lines changed: 45 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "924650fabd10263aa71c7ec8a1f9544f",
2+
"specHash": "ed43ce3c2a6bf973841dfa10ad4655d5",
33
"generatedFiles": {
44
"files": [
55
{
@@ -220,15 +220,15 @@
220220
},
221221
{
222222
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/PublicUser.php",
223-
"hash": "c132013ee5c093680e7cb0abd6dce8cb"
223+
"hash": "f000ec1a04b1859c43eb518a2644f795"
224224
},
225225
{
226226
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/GistHistory.php",
227227
"hash": "3836d2b7dbdcb72ae2c69315fada6338"
228228
},
229229
{
230230
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/GistSimple.php",
231-
"hash": "12f7de7a413a416fa45dff662f4b1a64"
231+
"hash": "d1ccaecf26ca5c62fc59def1615c54eb"
232232
},
233233
{
234234
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/GistComment.php",
@@ -600,11 +600,11 @@
600600
},
601601
{
602602
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRule.php",
603-
"hash": "f31207de7ea299b5fb1bbf37ed72e83c"
603+
"hash": "f814399b81713e17c9b3a4e013b37f3c"
604604
},
605605
{
606606
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleset.php",
607-
"hash": "ef85fa7d7b57ba43af2d6916a489f8cd"
607+
"hash": "bc78a1214683cb13f95d93e11921c30d"
608608
},
609609
{
610610
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ActionsBillingUsage.php",
@@ -1476,7 +1476,7 @@
14761476
},
14771477
{
14781478
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/PrivateUser.php",
1479-
"hash": "5de7d2bc869ee21522e157a31f616cca"
1479+
"hash": "e028f20c0bf87acb7fb98093a39b0ed6"
14801480
},
14811481
{
14821482
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodespacesSecret.php",
@@ -2612,7 +2612,7 @@
26122612
},
26132613
{
26142614
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/GistSimple\/Forks.php",
2615-
"hash": "4fb0bb8159e06d09dc69971fe1e2ed09"
2615+
"hash": "7538915cface74e244bc1d727c168446"
26162616
},
26172617
{
26182618
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/GistSimple\/ForkOf.php",
@@ -4632,11 +4632,11 @@
46324632
},
46334633
{
46344634
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/CreateOrgRuleset\/Request\/ApplicationJson.php",
4635-
"hash": "c117f6b84510b5e9fd9d5f29267dae82"
4635+
"hash": "3425239215efc4c0a41e5124efafeead"
46364636
},
46374637
{
46384638
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateOrgRuleset\/Request\/ApplicationJson.php",
4639-
"hash": "7bfb2cacb4dae42b93420462d8bdc058"
4639+
"hash": "9e7eb8a5d41c5bf4e55d6b46a1ecb55e"
46404640
},
46414641
{
46424642
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Teams\/Create\/Request\/ApplicationJson.php",
@@ -5340,11 +5340,11 @@
53405340
},
53415341
{
53425342
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/CreateRepoRuleset\/Request\/ApplicationJson.php",
5343-
"hash": "891b5699ff5a4b35bd57a441caae67b6"
5343+
"hash": "9115da8a5a135beccafc2ba73359dedd"
53445344
},
53455345
{
53465346
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Repos\/UpdateRepoRuleset\/Request\/ApplicationJson.php",
5347-
"hash": "a88d5b165813a5427998198496d665d5"
5347+
"hash": "1b444120c4ec4ee8bf0da35c958baeed"
53485348
},
53495349
{
53505350
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecretScanning\/UpdateAlert\/Request\/ApplicationJson.php",
@@ -5428,7 +5428,7 @@
54285428
},
54295429
{
54305430
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Users\/GetAuthenticated\/Response\/ApplicationJson\/Ok.php",
5431-
"hash": "fd79f0156c1702cba5ac5ada90bd7031"
5431+
"hash": "c7c9b5936a168d53908c6f4c1a327ef0"
54325432
},
54335433
{
54345434
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Users\/UpdateAuthenticated\/Request\/ApplicationJson.php",
@@ -5616,7 +5616,7 @@
56165616
},
56175617
{
56185618
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Repos.php",
5619-
"hash": "83236f1e7b6e667c238b9ee90f4f0eb3"
5619+
"hash": "0238447f8d63faa2aab213a5c6fc7e5b"
56205620
},
56215621
{
56225622
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Billing.php",
@@ -11658,13 +11658,9 @@
1165811658
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Pulls\/UpdateBranch\/Response\/ApplicationJson\/Accepted\/Application\/Json.php",
1165911659
"hash": "bdfddbc540ad02290bc63648001457d7"
1166011660
},
11661-
{
11662-
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietFA9375D5\/TietB4DFA8F3\/Tiet91595615\/TietBD0ADDF4.php",
11663-
"hash": "2cecc22d9ec87832cbab4e114057a43d"
11664-
},
1166511661
{
1166611662
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Users\/GetByUsername\/Response\/ApplicationJson\/Ok.php",
11667-
"hash": "b7289acefcf960a5cc3c68a846a39de2"
11663+
"hash": "506cdd6b59ee3baf500b52e805422fcb"
1166811664
},
1166911665
{
1167011666
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeScanningAlertStateQuery.php",
@@ -11728,7 +11724,7 @@
1172811724
},
1172911725
{
1173011726
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleDetailed.php",
11731-
"hash": "a34175b8607ff1256e9171e4a0227e52"
11727+
"hash": "4a5f56484936c076a1552325032b6cb7"
1173211728
},
1173311729
{
1173411730
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CopilotSeatBreakdown.php",
@@ -11868,15 +11864,15 @@
1186811864
},
1186911865
{
1187011866
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetCreated.php",
11871-
"hash": "2d226da6f373b431bd269ff18fd6a348"
11867+
"hash": "f1f7a5de2e4ee76175878ee55d404681"
1187211868
},
1187311869
{
1187411870
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetDeleted.php",
11875-
"hash": "740f76428a80cf6f1c1b3f7d7146d3ac"
11871+
"hash": "f90ce21e6b59becc34db2fc7d0d5630a"
1187611872
},
1187711873
{
1187811874
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited.php",
11879-
"hash": "9eab4199d5118c57751ddd83944e54ab"
11875+
"hash": "2ebed4d9233e60187b4598df2376dd82"
1188011876
},
1188111877
{
1188211878
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookDeploymentReviewApproved\/WorkflowRun\/Actor.php",
@@ -12112,7 +12108,7 @@
1211212108
},
1211312109
{
1211412110
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes.php",
12115-
"hash": "936209bab2bd1f70b1f7d6573c152351"
12111+
"hash": "c1c1b25efe85e4b1b4ede5c10ec7eb02"
1211612112
},
1211712113
{
1211812114
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Conditions.php",
@@ -12140,11 +12136,11 @@
1214012136
},
1214112137
{
1214212138
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Rules.php",
12143-
"hash": "ae8e644be9cb50c01c787749bf2c5d26"
12139+
"hash": "da49324be3e168f0affd503c367d7c34"
1214412140
},
1214512141
{
1214612142
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Rules\/Updated.php",
12147-
"hash": "0bce5d5950d3418f1aed99686d442663"
12143+
"hash": "9807d5017ed1a6f72565f6f75e64c3e5"
1214812144
},
1214912145
{
1215012146
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Rules\/Updated\/Changes.php",
@@ -21076,23 +21072,23 @@
2107621072
},
2107721073
{
2107821074
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Repos\/GetBranchRules.php",
21079-
"hash": "7a2b4fa5b211957b8b692e058fb27aaa"
21075+
"hash": "b21f0590bee73822fb99cf651ad49e48"
2108021076
},
2108121077
{
2108221078
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetBranchRules.php",
21083-
"hash": "6dc4fc2f5a5e83c08c1f265b47d70d69"
21079+
"hash": "264f3fa7c68e650e1544795b3972e819"
2108421080
},
2108521081
{
2108621082
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetBranchRulesTest.php",
2108721083
"hash": "d78e2ab9f0a03c808a974c57ee244d61"
2108821084
},
2108921085
{
2109021086
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Repos\/GetBranchRulesListing.php",
21091-
"hash": "173299a553042b75b9078bba3be9c4ff"
21087+
"hash": "b20b351b7c47a84edb76b053bb59ec6e"
2109221088
},
2109321089
{
2109421090
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetBranchRulesListing.php",
21095-
"hash": "9ef71ca97a1d6771060960f3a687c0d6"
21091+
"hash": "8161d0d1fbcf91b593f8e8e71e4471d5"
2109621092
},
2109721093
{
2109821094
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetBranchRulesListingTest.php",
@@ -24484,7 +24480,7 @@
2448424480
},
2448524481
{
2448624482
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Attribute\/CastUnionToType\/Schema\/WebhookRepositoryRulesetEdited\/Changes\/Rules\/Updated\/Rule.php",
24487-
"hash": "aeb3039fa4e053ac9f61474a5b207a88"
24483+
"hash": "e8affe6e5bdd43d57463f55f2c646c3f"
2448824484
},
2448924485
{
2449024486
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Attribute\/CastUnionToType\/Schema\/Repos\/CreateOrgRuleset\/Request\/ApplicationJson\/Conditions.php",
@@ -24548,7 +24544,7 @@
2454824544
},
2454924545
{
2455024546
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Repos.php",
24551-
"hash": "9f88c71364652106ee9813558b1a0451"
24547+
"hash": "e5a3402b856fbe79b1046d6894cd0560"
2455224548
},
2455324549
{
2455424550
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Users.php",
@@ -24824,7 +24820,7 @@
2482424820
},
2482524821
{
2482624822
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Repos.php",
24827-
"hash": "6123d8f26a86d51a2e351956bad3fb9f"
24823+
"hash": "948f06b8c92d8e33d327278602fbb7a3"
2482824824
},
2482924825
{
2483024826
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Activity.php",
@@ -25048,7 +25044,7 @@
2504825044
},
2504925045
{
2505025046
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php",
25051-
"hash": "cedf125c6cf20a957669cdfbd2d0a234"
25047+
"hash": "c1b860d31a9ea6c6172e2f37efad067c"
2505225048
},
2505325049
{
2505425050
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Eight.php",
@@ -25152,7 +25148,7 @@
2515225148
},
2515325149
{
2515425150
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php",
25155-
"hash": "605b3516128f191c73f4d7ec43d33eff"
25151+
"hash": "11af7bddc1760f923a8626f12b0e7fe1"
2515625152
},
2515725153
{
2515825154
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/List\/Eight.php",
@@ -26948,7 +26944,7 @@
2694826944
},
2694926945
{
2695026946
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/User.php",
26951-
"hash": "119557dceba6793318aab7f75db41e49"
26947+
"hash": "18307c00ed0ef187889ef86a7eb11bfe"
2695226948
},
2695326949
{
2695426950
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/User\/Blocks.php",
@@ -27872,11 +27868,11 @@
2787227868
},
2787327869
{
2787427870
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
27875-
"hash": "cfeba4672b72d510e7390fda15eb6cb7"
27871+
"hash": "1d040f84ac47ba521c4cf21abe112baf"
2787627872
},
2787727873
{
2787827874
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
27879-
"hash": "19ae04ba3a5efecc785673e75514fe4a"
27875+
"hash": "c054bd22e150fcfa390fa3d9cb58cb34"
2788027876
},
2788127877
{
2788227878
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
@@ -29681,6 +29677,18 @@
2968129677
{
2968229678
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietF341CA71\/Tiet6DE061C1\/TietFEFA2352\/TietE1DBE7BA.php",
2968329679
"hash": "42575c572998f1e511150cdef2c5c43a"
29680+
},
29681+
{
29682+
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleCodeScanning.php",
29683+
"hash": "5bccc17f103c429d843075e22afde55d"
29684+
},
29685+
{
29686+
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleCodeScanning\/Parameters.php",
29687+
"hash": "3a7dfe61554e0bde61f9d0ad9c82cff1"
29688+
},
29689+
{
29690+
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet9F8559A9\/Tiet7FE3917D\/TietE7014A4E\/Tiet74E14507.php",
29691+
"hash": "731806949701c7b579c6468e205d87d6"
2968429692
}
2968529693
]
2968629694
},

clients/GitHub/src/Internal/Attribute/CastUnionToType/Schema/WebhookRepositoryRulesetEdited/Changes/Rules/Updated/Rule.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,13 @@ public function cast(mixed $value, ObjectMapper $hydrator): mixed
157157
} catch (Throwable) {
158158
}
159159
}
160+
161+
if ($signature === 'parameters|type' && $value['type'] === 'code_scanning') {
162+
try {
163+
return $hydrator->hydrateObject(Schema\RepositoryRuleCodeScanning::class, $value);
164+
} catch (Throwable) {
165+
}
166+
}
160167
}
161168

162169
return $value;

clients/GitHub/src/Internal/Hydrator/Operation/User.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Priv
372372

373373
after_email:
374374

375+
$value = $payload['notification_email'] ?? null;
376+
377+
if ($value === null) {
378+
$properties['notificationEmail'] = null;
379+
goto after_notificationEmail;
380+
}
381+
382+
$properties['notificationEmail'] = $value;
383+
384+
after_notificationEmail:
385+
375386
$value = $payload['hireable'] ?? null;
376387

377388
if ($value === null) {
@@ -960,6 +971,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
960971

961972
after_email: $result['email'] = $email;
962973

974+
$notificationEmail = $object->notificationEmail;
975+
976+
if ($notificationEmail === null) {
977+
goto after_notificationEmail;
978+
}
979+
980+
after_notificationEmail: $result['notification_email'] = $notificationEmail;
981+
963982
$hireable = $object->hireable;
964983

965984
if ($hireable === null) {

clients/GitHub/src/Internal/Operation/Repos/GetBranchRules.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function createRequest(): RequestInterface
4949
return new Request('GET', str_replace(['{owner}', '{repo}', '{branch}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->branch, $this->perPage, $this->page], '/repos/{owner}/{repo}/rules/branches/{branch}' . '?per_page={per_page}&page={page}'));
5050
}
5151

52-
/** @return Observable<Schema\RepositoryRuleCreation|Schema\RepositoryRuleUpdate|Schema\RepositoryRuleDeletion|Schema\RepositoryRuleRequiredLinearHistory|Schema\RepositoryRuleRequiredDeployments|Schema\RepositoryRuleRequiredSignatures|Schema\RepositoryRulePullRequest|Schema\RepositoryRuleRequiredStatusChecks|Schema\RepositoryRuleNonFastForward|Schema\RepositoryRuleCommitMessagePattern|Schema\RepositoryRuleCommitAuthorEmailPattern|Schema\RepositoryRuleCommitterEmailPattern|Schema\RepositoryRuleBranchNamePattern|Schema\RepositoryRuleTagNamePattern|Schema\RepositoryRuleWorkflows> */
52+
/** @return Observable<Schema\RepositoryRuleCreation|Schema\RepositoryRuleUpdate|Schema\RepositoryRuleDeletion|Schema\RepositoryRuleRequiredLinearHistory|Schema\RepositoryRuleRequiredDeployments|Schema\RepositoryRuleRequiredSignatures|Schema\RepositoryRulePullRequest|Schema\RepositoryRuleRequiredStatusChecks|Schema\RepositoryRuleNonFastForward|Schema\RepositoryRuleCommitMessagePattern|Schema\RepositoryRuleCommitAuthorEmailPattern|Schema\RepositoryRuleCommitterEmailPattern|Schema\RepositoryRuleBranchNamePattern|Schema\RepositoryRuleTagNamePattern|Schema\RepositoryRuleWorkflows|Schema\RepositoryRuleCodeScanning> */
5353
public function createResponse(ResponseInterface $response): Observable
5454
{
5555
$code = $response->getStatusCode();
@@ -62,7 +62,7 @@ public function createResponse(ResponseInterface $response): Observable
6262
* Response
6363
**/
6464
case 200:
65-
return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\RepositoryRuleCreation|Schema\RepositoryRuleUpdate|Schema\RepositoryRuleDeletion|Schema\RepositoryRuleRequiredLinearHistory|Schema\RepositoryRuleRequiredDeployments|Schema\RepositoryRuleRequiredSignatures|Schema\RepositoryRulePullRequest|Schema\RepositoryRuleRequiredStatusChecks|Schema\RepositoryRuleNonFastForward|Schema\RepositoryRuleCommitMessagePattern|Schema\RepositoryRuleCommitAuthorEmailPattern|Schema\RepositoryRuleCommitterEmailPattern|Schema\RepositoryRuleBranchNamePattern|Schema\RepositoryRuleTagNamePattern|Schema\RepositoryRuleWorkflows {
65+
return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\RepositoryRuleCreation|Schema\RepositoryRuleUpdate|Schema\RepositoryRuleDeletion|Schema\RepositoryRuleRequiredLinearHistory|Schema\RepositoryRuleRequiredDeployments|Schema\RepositoryRuleRequiredSignatures|Schema\RepositoryRulePullRequest|Schema\RepositoryRuleRequiredStatusChecks|Schema\RepositoryRuleNonFastForward|Schema\RepositoryRuleCommitMessagePattern|Schema\RepositoryRuleCommitAuthorEmailPattern|Schema\RepositoryRuleCommitterEmailPattern|Schema\RepositoryRuleBranchNamePattern|Schema\RepositoryRuleTagNamePattern|Schema\RepositoryRuleWorkflows|Schema\RepositoryRuleCodeScanning {
6666
$error = new RuntimeException();
6767
try {
6868
$this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleCreation::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema'));
@@ -199,6 +199,15 @@ public function createResponse(ResponseInterface $response): Observable
199199
}
200200

201201
items_application_json_two_hundred_aaaao:
202+
try {
203+
$this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\RepositoryRuleCodeScanning::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema'));
204+
205+
return $this->hydrator->hydrateObject(Schema\RepositoryRuleCodeScanning::class, $body);
206+
} catch (Throwable $error) {
207+
goto items_application_json_two_hundred_aaaap;
208+
}
209+
210+
items_application_json_two_hundred_aaaap:
202211
throw $error;
203212
});
204213
}

0 commit comments

Comments
 (0)