Skip to content

Commit 65d820f

Browse files
WyriHaximusgithub-actions[bot]
authored andcommitted
[GitHub] Update to 1.1.4-045e5b013b51c6a9b4cceeceae74dd4d from 1.1.4-79bfc552fc9431ae453024109bc3424d
Detected Schema changes: ``` ├─┬Paths │ ├─┬/repos/{owner}/{repo}/installation │ │ └─┬GET │ │ └─┬Responses │ │ └─┬200 │ │ └─┬application/json │ │ └─┬default │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ └──[➖] value (202678:9) │ ├─┬/apps/{app_slug} │ │ └─┬GET │ │ └─┬Responses │ │ └─┬200 │ │ └─┬application/json │ │ └─┬default │ │ ├──[🔀] value (196249:9) │ │ ├──[🔀] value (196249:9) │ │ ├──[🔀] value (196249:9) │ │ ├──[🔀] value (196249:9) │ │ ├──[🔀] value (196249:9) │ │ ├──[🔀] value (196249:9) │ │ ├──[🔀] value (196249:9) │ │ ├──[🔀] value (196249:9) │ │ ├──[🔀] value (196249:9) │ │ ├──[🔀] value (196249:9) │ │ ├──[🔀] value (196249:9) │ │ ├──[🔀] value (196249:9) │ │ └──[➖] value (196269:9) │ ├─┬/app │ │ └─┬GET │ │ └─┬Responses │ │ └─┬200 │ │ └─┬application/json │ │ └─┬default │ │ ├──[🔀] value (196249:9) │ │ ├──[🔀] value (196249:9) │ │ ├──[🔀] value (196249:9) │ │ ├──[🔀] value (196249:9) │ │ ├──[🔀] value (196249:9) │ │ ├──[🔀] value (196249:9) │ │ ├──[🔀] value (196249:9) │ │ ├──[🔀] value (196249:9) │ │ ├──[🔀] value (196249:9) │ │ ├──[🔀] value (196249:9) │ │ ├──[🔀] value (196249:9) │ │ ├──[🔀] value (196249:9) │ │ └──[➖] value (196269:9) │ ├─┬/orgs/{org}/installation │ │ └─┬GET │ │ └─┬Responses │ │ └─┬200 │ │ └─┬application/json │ │ └─┬default │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ └──[➖] value (202678:9) │ ├─┬/orgs/{org}/secret-scanning/alerts │ │ └─┬GET │ │ └─┬Parameters │ │ └──[🔀] description (222822:20) │ ├─┬/users/{username}/installation │ │ └─┬GET │ │ └─┬Responses │ │ └─┬200 │ │ └─┬application/json │ │ └─┬default │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ ├──[🔀] value (202657:9) │ │ └──[➖] value (202678:9) │ ├─┬/enterprises/{enterprise}/secret-scanning/alerts │ │ └─┬GET │ │ └─┬Parameters │ │ └──[🔀] description (222822:20) │ ├─┬/repos/{owner}/{repo}/secret-scanning/alerts │ │ └─┬GET │ │ └─┬Parameters │ │ └──[🔀] description (222822:20) │ └─┬/repos/{owner}/{repo} │ └─┬PATCH │ └─┬Requestbody │ └─┬application/json │ └─┬Schema │ └─┬security_and_analysis │ └─┬secret_scanning_non_provider_patterns │ └──[🔀] description (16201:36) ├─┬deployment-status-created │ └─┬POST │ └──[🔀] summary (50258:16) └─┬Components ├─┬secret-scanning-alert │ └─┬secret_type_display_name │ └──[🔀] description (87263:24) ├─┬secret-scanning-alert-webhook │ └─┬secret_type_display_name │ └──[🔀] description (99757:24) ├─┬branch-restriction-policy │ └─┬apps │ └─┬Schema │ └──[➖] properties (78156:15)❌ ├─┬webhook-check-suite-requested │ └─┬check_suite │ └─┬app │ └──[➖] properties (101384:17)❌ ├─┬webhook-check-suite-completed │ └─┬check_suite │ └─┬app │ └──[➖] properties (100766:17)❌ ├─┬webhook-check-suite-rerequested │ └─┬check_suite │ └─┬app │ └──[➖] properties (101995:17)❌ └─┬organization-secret-scanning-alert └─┬secret_type_display_name └──[🔀] description (68054:24) ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | paths | 78 | 0 | | webhooks | 1 | 0 | | components | 7 | 4 | Date: 08/20/24 | Commit: New: etc/specs/GitHub/previous.spec.yaml, Original: etc/specs/GitHub/current.spec.yaml - ❌ **BREAKING Changes**: _4_ out of _86_ - **Modifications**: _77_ - **Removals**: _9_ - **Breaking Removals**: _4_ ERROR: breaking changes discovered
1 parent 6a0bc3e commit 65d820f

File tree

734 files changed

+2828
-2635
lines changed

Some content is hidden

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

734 files changed

+2828
-2635
lines changed

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

+739-739
Large diffs are not rendered by default.

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
193193
'DateTimeInterface' => $this->serializeValueDateTimeInterface($object),
194194
'ApiClients\Client\GitHub\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($object),
195195
'ApiClients\Client\GitHub\Schema\ValidationErrorSimple' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationErrorSimple($object),
196-
default => throw new LogicException('No serialization defined for $className'),
196+
default => throw new LogicException("No serialization defined for $className"),
197197
};
198198
} catch (Throwable $exception) {
199199
throw UnableToSerializeObject::dueToError($className, $exception);

clients/GitHub/src/Internal/Hydrator/Operation/Advisories/GhsaId.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
446446
'ApiClients\Client\GitHub\Schema\GlobalAdvisory' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️GlobalAdvisory($object),
447447
'ApiClients\Client\GitHub\Schema\GlobalAdvisory\Cvss' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️GlobalAdvisory⚡️Cvss($object),
448448
'ApiClients\Client\GitHub\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($object),
449-
default => throw new LogicException('No serialization defined for $className'),
449+
default => throw new LogicException("No serialization defined for $className"),
450450
};
451451
} catch (Throwable $exception) {
452452
throw UnableToSerializeObject::dueToError($className, $exception);

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

+20-20
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Inte
8787

8888
after_nodeId:
8989

90+
$value = $payload['client_id'] ?? null;
91+
92+
if ($value === null) {
93+
$properties['clientId'] = null;
94+
goto after_clientId;
95+
}
96+
97+
$properties['clientId'] = $value;
98+
99+
after_clientId:
100+
90101
$value = $payload['owner'] ?? null;
91102

92103
if ($value === null) {
@@ -215,17 +226,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Inte
215226

216227
after_installationsCount:
217228

218-
$value = $payload['client_id'] ?? null;
219-
220-
if ($value === null) {
221-
$properties['clientId'] = null;
222-
goto after_clientId;
223-
}
224-
225-
$properties['clientId'] = $value;
226-
227-
after_clientId:
228-
229229
$value = $payload['client_secret'] ?? null;
230230

231231
if ($value === null) {
@@ -631,7 +631,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
631631
'ApiClients\Client\GitHub\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration($object),
632632
'ApiClients\Client\GitHub\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($object),
633633
'ApiClients\Client\GitHub\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration⚡️Permissions($object),
634-
default => throw new LogicException('No serialization defined for $className'),
634+
default => throw new LogicException("No serialization defined for $className"),
635635
};
636636
} catch (Throwable $exception) {
637637
throw UnableToSerializeObject::dueToError($className, $exception);
@@ -712,6 +712,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
712712
$nodeId = $object->nodeId;
713713
after_nodeId: $result['node_id'] = $nodeId;
714714

715+
$clientId = $object->clientId;
716+
717+
if ($clientId === null) {
718+
goto after_clientId;
719+
}
720+
721+
after_clientId: $result['client_id'] = $clientId;
722+
715723
$owner = $object->owner;
716724

717725
if ($owner === null) {
@@ -766,14 +774,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
766774

767775
after_installationsCount: $result['installations_count'] = $installationsCount;
768776

769-
$clientId = $object->clientId;
770-
771-
if ($clientId === null) {
772-
goto after_clientId;
773-
}
774-
775-
after_clientId: $result['client_id'] = $clientId;
776-
777777
$clientSecret = $object->clientSecret;
778778

779779
if ($clientSecret === null) {

clients/GitHub/src/Internal/Hydrator/Operation/App/Hook/Config.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
138138
'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object),
139139
'DateTimeInterface' => $this->serializeValueDateTimeInterface($object),
140140
'ApiClients\Client\GitHub\Schema\WebhookConfig' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️WebhookConfig($object),
141-
default => throw new LogicException('No serialization defined for $className'),
141+
default => throw new LogicException("No serialization defined for $className"),
142142
};
143143
} catch (Throwable $exception) {
144144
throw UnableToSerializeObject::dueToError($className, $exception);

clients/GitHub/src/Internal/Hydrator/Operation/App/Hook/Deliveries.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
281281
'ApiClients\Client\GitHub\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($object),
282282
'ApiClients\Client\GitHub\Schema\ScimError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ScimError($object),
283283
'ApiClients\Client\GitHub\Schema\ValidationError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationError($object),
284-
default => throw new LogicException('No serialization defined for $className'),
284+
default => throw new LogicException("No serialization defined for $className"),
285285
};
286286
} catch (Throwable $exception) {
287287
throw UnableToSerializeObject::dueToError($className, $exception);

clients/GitHub/src/Internal/Hydrator/Operation/App/Hook/Deliveries/DeliveryId.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
668668
'ApiClients\Client\GitHub\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($object),
669669
'ApiClients\Client\GitHub\Schema\ScimError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ScimError($object),
670670
'ApiClients\Client\GitHub\Schema\ValidationError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationError($object),
671-
default => throw new LogicException('No serialization defined for $className'),
671+
default => throw new LogicException("No serialization defined for $className"),
672672
};
673673
} catch (Throwable $exception) {
674674
throw UnableToSerializeObject::dueToError($className, $exception);

clients/GitHub/src/Internal/Hydrator/Operation/App/Hook/Deliveries/DeliveryId/Attempts.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
281281
'ApiClients\Client\GitHub\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($object),
282282
'ApiClients\Client\GitHub\Schema\ScimError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ScimError($object),
283283
'ApiClients\Client\GitHub\Schema\ValidationError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationError($object),
284-
default => throw new LogicException('No serialization defined for $className'),
284+
default => throw new LogicException("No serialization defined for $className"),
285285
};
286286
} catch (Throwable $exception) {
287287
throw UnableToSerializeObject::dueToError($className, $exception);

clients/GitHub/src/Internal/Hydrator/Operation/App/InstallationRequests.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
138138
'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object),
139139
'DateTimeInterface' => $this->serializeValueDateTimeInterface($object),
140140
'ApiClients\Client\GitHub\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($object),
141-
default => throw new LogicException('No serialization defined for $className'),
141+
default => throw new LogicException("No serialization defined for $className"),
142142
};
143143
} catch (Throwable $exception) {
144144
throw UnableToSerializeObject::dueToError($className, $exception);

clients/GitHub/src/Internal/Hydrator/Operation/App/Installations/InstallationId.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1217,7 +1217,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
12171217
'ApiClients\Client\GitHub\Schema\AppPermissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️AppPermissions($object),
12181218
'ApiClients\Client\GitHub\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($object),
12191219
'ApiClients\Client\GitHub\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($object),
1220-
default => throw new LogicException('No serialization defined for $className'),
1220+
default => throw new LogicException("No serialization defined for $className"),
12211221
};
12221222
} catch (Throwable $exception) {
12231223
throw UnableToSerializeObject::dueToError($className, $exception);

clients/GitHub/src/Internal/Hydrator/Operation/App/Installations/InstallationId/AccessTokens.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
864864
'ApiClients\Client\GitHub\Schema\AppPermissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️AppPermissions($object),
865865
'ApiClients\Client\GitHub\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($object),
866866
'ApiClients\Client\GitHub\Schema\ValidationError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationError($object),
867-
default => throw new LogicException('No serialization defined for $className'),
867+
default => throw new LogicException("No serialization defined for $className"),
868868
};
869869
} catch (Throwable $exception) {
870870
throw UnableToSerializeObject::dueToError($className, $exception);

clients/GitHub/src/Internal/Hydrator/Operation/App/Installations/InstallationId/Suspended.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
138138
'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object),
139139
'DateTimeInterface' => $this->serializeValueDateTimeInterface($object),
140140
'ApiClients\Client\GitHub\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($object),
141-
default => throw new LogicException('No serialization defined for $className'),
141+
default => throw new LogicException("No serialization defined for $className"),
142142
};
143143
} catch (Throwable $exception) {
144144
throw UnableToSerializeObject::dueToError($className, $exception);

clients/GitHub/src/Internal/Hydrator/Operation/AppManifests/Code/Conversions.php

+20-20
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Inte
9191

9292
after_nodeId:
9393

94+
$value = $payload['client_id'] ?? null;
95+
96+
if ($value === null) {
97+
$properties['clientId'] = null;
98+
goto after_clientId;
99+
}
100+
101+
$properties['clientId'] = $value;
102+
103+
after_clientId:
104+
94105
$value = $payload['owner'] ?? null;
95106

96107
if ($value === null) {
@@ -219,17 +230,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Inte
219230

220231
after_installationsCount:
221232

222-
$value = $payload['client_id'] ?? null;
223-
224-
if ($value === null) {
225-
$properties['clientId'] = null;
226-
goto after_clientId;
227-
}
228-
229-
$properties['clientId'] = $value;
230-
231-
after_clientId:
232-
233233
$value = $payload['client_secret'] ?? null;
234234

235235
if ($value === null) {
@@ -752,7 +752,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
752752
'ApiClients\Client\GitHub\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration⚡️Permissions($object),
753753
'ApiClients\Client\GitHub\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($object),
754754
'ApiClients\Client\GitHub\Schema\ValidationErrorSimple' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationErrorSimple($object),
755-
default => throw new LogicException('No serialization defined for $className'),
755+
default => throw new LogicException("No serialization defined for $className"),
756756
};
757757
} catch (Throwable $exception) {
758758
throw UnableToSerializeObject::dueToError($className, $exception);
@@ -833,6 +833,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
833833
$nodeId = $object->nodeId;
834834
after_nodeId: $result['node_id'] = $nodeId;
835835

836+
$clientId = $object->clientId;
837+
838+
if ($clientId === null) {
839+
goto after_clientId;
840+
}
841+
842+
after_clientId: $result['client_id'] = $clientId;
843+
836844
$owner = $object->owner;
837845

838846
if ($owner === null) {
@@ -887,14 +895,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
887895

888896
after_installationsCount: $result['installations_count'] = $installationsCount;
889897

890-
$clientId = $object->clientId;
891-
892-
if ($clientId === null) {
893-
goto after_clientId;
894-
}
895-
896-
after_clientId: $result['client_id'] = $clientId;
897-
898898
$clientSecret = $object->clientSecret;
899899

900900
if ($clientSecret === null) {

clients/GitHub/src/Internal/Hydrator/Operation/Applications/ClientId/Grant.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
127127
'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object),
128128
'DateTimeInterface' => $this->serializeValueDateTimeInterface($object),
129129
'ApiClients\Client\GitHub\Schema\ValidationError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationError($object),
130-
default => throw new LogicException('No serialization defined for $className'),
130+
default => throw new LogicException("No serialization defined for $className"),
131131
};
132132
} catch (Throwable $exception) {
133133
throw UnableToSerializeObject::dueToError($className, $exception);

clients/GitHub/src/Internal/Hydrator/Operation/Applications/ClientId/Token.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
13841384
'ApiClients\Client\GitHub\Schema\AppPermissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️AppPermissions($object),
13851385
'ApiClients\Client\GitHub\Schema\ValidationError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationError($object),
13861386
'ApiClients\Client\GitHub\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($object),
1387-
default => throw new LogicException('No serialization defined for $className'),
1387+
default => throw new LogicException("No serialization defined for $className"),
13881388
};
13891389
} catch (Throwable $exception) {
13901390
throw UnableToSerializeObject::dueToError($className, $exception);

clients/GitHub/src/Internal/Hydrator/Operation/Applications/ClientId/Token/Scoped.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
13841384
'ApiClients\Client\GitHub\Schema\AppPermissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️AppPermissions($object),
13851385
'ApiClients\Client\GitHub\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($object),
13861386
'ApiClients\Client\GitHub\Schema\ValidationError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️ValidationError($object),
1387-
default => throw new LogicException('No serialization defined for $className'),
1387+
default => throw new LogicException("No serialization defined for $className"),
13881388
};
13891389
} catch (Throwable $exception) {
13901390
throw UnableToSerializeObject::dueToError($className, $exception);

clients/GitHub/src/Internal/Hydrator/Operation/Apps/AppSlug.php

+20-20
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Inte
8989

9090
after_nodeId:
9191

92+
$value = $payload['client_id'] ?? null;
93+
94+
if ($value === null) {
95+
$properties['clientId'] = null;
96+
goto after_clientId;
97+
}
98+
99+
$properties['clientId'] = $value;
100+
101+
after_clientId:
102+
92103
$value = $payload['owner'] ?? null;
93104

94105
if ($value === null) {
@@ -217,17 +228,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Inte
217228

218229
after_installationsCount:
219230

220-
$value = $payload['client_id'] ?? null;
221-
222-
if ($value === null) {
223-
$properties['clientId'] = null;
224-
goto after_clientId;
225-
}
226-
227-
$properties['clientId'] = $value;
228-
229-
after_clientId:
230-
231231
$value = $payload['client_secret'] ?? null;
232232

233233
if ($value === null) {
@@ -697,7 +697,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
697697
'ApiClients\Client\GitHub\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($object),
698698
'ApiClients\Client\GitHub\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Integration⚡️Permissions($object),
699699
'ApiClients\Client\GitHub\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($object),
700-
default => throw new LogicException('No serialization defined for $className'),
700+
default => throw new LogicException("No serialization defined for $className"),
701701
};
702702
} catch (Throwable $exception) {
703703
throw UnableToSerializeObject::dueToError($className, $exception);
@@ -778,6 +778,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
778778
$nodeId = $object->nodeId;
779779
after_nodeId: $result['node_id'] = $nodeId;
780780

781+
$clientId = $object->clientId;
782+
783+
if ($clientId === null) {
784+
goto after_clientId;
785+
}
786+
787+
after_clientId: $result['client_id'] = $clientId;
788+
781789
$owner = $object->owner;
782790

783791
if ($owner === null) {
@@ -832,14 +840,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
832840

833841
after_installationsCount: $result['installations_count'] = $installationsCount;
834842

835-
$clientId = $object->clientId;
836-
837-
if ($clientId === null) {
838-
goto after_clientId;
839-
}
840-
841-
after_clientId: $result['client_id'] = $clientId;
842-
843843
$clientSecret = $object->clientSecret;
844844

845845
if ($clientSecret === null) {

0 commit comments

Comments
 (0)