Skip to content

Commit bdef4a4

Browse files
authored
[GitHubAE] Update to 1.1.4 (hash: 8440de522464f4ce18eb8eae51d0cbeacurrent=d791772b4539badc890b300491b7d057) from 1.1.4 (hash: )
Detected Schema changes: ├─┬Paths │ ├─┬/repos/{owner}/{repo}/issues/events │ │ └─┬GET │ │ └──[-] description (21684:20) │ ├─┬/repos/{owner}/{repo}/milestones/{milestone_number} │ │ ├─┬GET │ │ │ └──[-] description (23561:20) │ │ └─┬DELETE │ │ └──[-] description (23651:20) │ ├─┬/repos/{owner}/{repo}/issues/{issue_number}/labels │ │ ├─┬GET │ │ │ └──[-] description (22232:20) │ │ ├─┬POST │ │ │ └──[-] description (22273:20) │ │ └─┬DELETE │ │ └──[-] description (22453:20) │ ├─┬/orgs/{org}/actions/secrets/{secret_name} │ │ └─┬PUT │ │ └──[M] description (6147:20) │ ├─┬/users/{username}/projects │ │ └─┬GET │ │ └──[-] description (32244:20) │ ├─┬/repos/{owner}/{repo}/teams │ │ └─┬GET │ │ ├──[-] description (27567:20) │ │ └─┬Responses │ │ └──[-] codes (197759:7)❌ │ ├─┬/repos/{owner}/{repo}/issues/{issue_number}/timeline │ │ └─┬GET │ │ └──[-] description (22786:20) │ ├─┬/projects/columns/{column_id}/cards │ │ └─┬GET │ │ └──[-] description (10437:20) │ ├─┬/user/memberships/orgs │ │ └─┬GET │ │ └──[-] description (30644:20) │ ├─┬/repos/{owner}/{repo}/issues/events/{event_id} │ │ └─┬GET │ │ └──[-] description (21721:20) │ ├─┬/repos/{owner}/{repo}/milestones │ │ ├─┬GET │ │ │ └──[-] description (23423:20) │ │ └─┬POST │ │ └──[-] description (23490:20) │ ├─┬/repos/{owner}/{repo}/issues │ │ └─┬POST │ │ └─┬Responses │ │ └──[-] codes (197771:7)❌ │ ├─┬/repos/{owner}/{repo}/issues/{issue_number}/events │ │ └─┬GET │ │ └──[-] description (22194:20) │ ├─┬/repos/{owner}/{repo}/milestones/{milestone_number}/labels │ │ └─┬GET │ │ └──[-] description (23675:20) │ ├─┬/projects/columns/cards/{card_id} │ │ ├─┬GET │ │ │ └──[-] description (10081:20) │ │ └─┬DELETE │ │ └──[-] description (10175:20) │ ├─┬/user/memberships/orgs/{org} │ │ ├─┬GET │ │ │ └──[-] description (30695:20) │ │ └─┬PATCH │ │ └──[-] description (30729:20) │ ├─┬/projects/columns/{column_id} │ │ ├─┬GET │ │ │ └──[-] description (10326:20) │ │ └─┬DELETE │ │ └──[-] description (10411:20) │ ├─┬/repos/{owner}/{repo}/actions/secrets/{secret_name} │ │ └─┬PUT │ │ └──[M] description (12683:20) │ ├─┬/repos/{owner}/{repo}/labels │ │ ├─┬GET │ │ │ └──[-] description (22974:20) │ │ └─┬POST │ │ └──[-] description (23010:20) │ ├─┬/repos/{owner}/{repo}/labels/{name} │ │ ├─┬GET │ │ │ └──[-] description (23079:20) │ │ ├─┬DELETE │ │ │ └──[-] description (23173:20) │ │ └─┬PATCH │ │ └──[-] description (23113:20) │ └─┬/projects/{project_id}/columns │ ├─┬GET │ │ └──[-] description (11014:20) │ └─┬POST │ └──[-] description (11053:20) └─┬Components └─┬api-overview └──[-] properties (50437:9)❌ Date: 06/03/23 | Commit: New: etc/specs/GitHubAE/previous.spec.yaml, Original: etc/specs/GitHubAE/current.spec.yaml Document Element | Total Changes | Breaking Changes paths | 33 | 2 components | 1 | 1 ❌ 3 Breaking changes out of 34 ERROR: breaking changes discovered
1 parent 17caf1f commit bdef4a4

File tree

13 files changed

+830
-18
lines changed

13 files changed

+830
-18
lines changed

etc/openapi-client-generator.state

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/Hydrator/Operation/Meta.php

Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public function hydrateObject(string $className, array $payload): object
2525
return match($className) {
2626
'ApiClients\Client\GitHubAE\Schema\ApiOverview' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️ApiOverview($payload),
2727
'ApiClients\Client\GitHubAE\Schema\ApiOverview\SshKeyFingerprints' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️ApiOverview⚡️SshKeyFingerprints($payload),
28+
'ApiClients\Client\GitHubAE\Schema\ApiOverview\Domains' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️ApiOverview⚡️Domains($payload),
2829
default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
2930
};
3031
}
@@ -165,6 +166,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Ap
165166

166167
after_dependabot:
167168

169+
$value = $payload['domains'] ?? null;
170+
171+
if ($value === null) {
172+
$properties['domains'] = null;
173+
goto after_domains;
174+
}
175+
176+
if (is_array($value)) {
177+
try {
178+
$this->hydrationStack[] = 'domains';
179+
$value = $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️ApiOverview⚡️Domains($value);
180+
} finally {
181+
array_pop($this->hydrationStack);
182+
}
183+
}
184+
185+
$properties['domains'] = $value;
186+
187+
after_domains:
188+
168189
} catch (\Throwable $exception) {
169190
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubAE\Schema\ApiOverview', $exception, stack: $this->hydrationStack);
170191
}
@@ -244,6 +265,71 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Ap
244265
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubAE\Schema\ApiOverview\SshKeyFingerprints', $exception, stack: $this->hydrationStack);
245266
}
246267
}
268+
269+
270+
private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️ApiOverview⚡️Domains(array $payload): \ApiClients\Client\GitHubAE\Schema\ApiOverview\Domains
271+
{
272+
$properties = [];
273+
$missingFields = [];
274+
try {
275+
$value = $payload['website'] ?? null;
276+
277+
if ($value === null) {
278+
$properties['website'] = null;
279+
goto after_website;
280+
}
281+
282+
$properties['website'] = $value;
283+
284+
after_website:
285+
286+
$value = $payload['codespaces'] ?? null;
287+
288+
if ($value === null) {
289+
$properties['codespaces'] = null;
290+
goto after_codespaces;
291+
}
292+
293+
$properties['codespaces'] = $value;
294+
295+
after_codespaces:
296+
297+
$value = $payload['copilot'] ?? null;
298+
299+
if ($value === null) {
300+
$properties['copilot'] = null;
301+
goto after_copilot;
302+
}
303+
304+
$properties['copilot'] = $value;
305+
306+
after_copilot:
307+
308+
$value = $payload['packages'] ?? null;
309+
310+
if ($value === null) {
311+
$properties['packages'] = null;
312+
goto after_packages;
313+
}
314+
315+
$properties['packages'] = $value;
316+
317+
after_packages:
318+
319+
} catch (\Throwable $exception) {
320+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubAE\Schema\ApiOverview\Domains', $exception, stack: $this->hydrationStack);
321+
}
322+
323+
if (count($missingFields) > 0) {
324+
throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHubAE\Schema\ApiOverview\Domains::class, $missingFields, stack: $this->hydrationStack);
325+
}
326+
327+
try {
328+
return new \ApiClients\Client\GitHubAE\Schema\ApiOverview\Domains(...$properties);
329+
} catch (\Throwable $exception) {
330+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubAE\Schema\ApiOverview\Domains', $exception, stack: $this->hydrationStack);
331+
}
332+
}
247333

248334
private function serializeViaTypeMap(string $accessor, object $object, array $payloadToTypeMap): array
249335
{
@@ -278,6 +364,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
278364
'DateTimeInterface' => $this->serializeValueDateTimeInterface($object),
279365
'ApiClients\Client\GitHubAE\Schema\ApiOverview' => $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️ApiOverview($object),
280366
'ApiClients\Client\GitHubAE\Schema\ApiOverview\SshKeyFingerprints' => $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️ApiOverview⚡️SshKeyFingerprints($object),
367+
'ApiClients\Client\GitHubAE\Schema\ApiOverview\Domains' => $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️ApiOverview⚡️Domains($object),
281368
default => throw new \LogicException('No serialization defined for $className'),
282369
};
283370
} catch (\Throwable $exception) {
@@ -512,6 +599,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
512599
$dependabot = $dependabotSerializer0->serialize($dependabot, $this);
513600
after_dependabot: $result['dependabot'] = $dependabot;
514601

602+
603+
$domains = $object->domains;
604+
605+
if ($domains === null) {
606+
goto after_domains;
607+
}
608+
$domains = $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️ApiOverview⚡️Domains($domains);
609+
after_domains: $result['domains'] = $domains;
610+
515611

516612
return $result;
517613
}
@@ -556,6 +652,79 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
556652

557653
return $result;
558654
}
655+
656+
657+
private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️ApiOverview⚡️Domains(mixed $object): mixed
658+
{
659+
\assert($object instanceof \ApiClients\Client\GitHubAE\Schema\ApiOverview\Domains);
660+
$result = [];
661+
662+
$website = $object->website;
663+
664+
if ($website === null) {
665+
goto after_website;
666+
}
667+
static $websiteSerializer0;
668+
669+
if ($websiteSerializer0 === null) {
670+
$websiteSerializer0 = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array (
671+
));
672+
}
673+
674+
$website = $websiteSerializer0->serialize($website, $this);
675+
after_website: $result['website'] = $website;
676+
677+
678+
$codespaces = $object->codespaces;
679+
680+
if ($codespaces === null) {
681+
goto after_codespaces;
682+
}
683+
static $codespacesSerializer0;
684+
685+
if ($codespacesSerializer0 === null) {
686+
$codespacesSerializer0 = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array (
687+
));
688+
}
689+
690+
$codespaces = $codespacesSerializer0->serialize($codespaces, $this);
691+
after_codespaces: $result['codespaces'] = $codespaces;
692+
693+
694+
$copilot = $object->copilot;
695+
696+
if ($copilot === null) {
697+
goto after_copilot;
698+
}
699+
static $copilotSerializer0;
700+
701+
if ($copilotSerializer0 === null) {
702+
$copilotSerializer0 = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array (
703+
));
704+
}
705+
706+
$copilot = $copilotSerializer0->serialize($copilot, $this);
707+
after_copilot: $result['copilot'] = $copilot;
708+
709+
710+
$packages = $object->packages;
711+
712+
if ($packages === null) {
713+
goto after_packages;
714+
}
715+
static $packagesSerializer0;
716+
717+
if ($packagesSerializer0 === null) {
718+
$packagesSerializer0 = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array (
719+
));
720+
}
721+
722+
$packages = $packagesSerializer0->serialize($packages, $this);
723+
after_packages: $result['packages'] = $packages;
724+
725+
726+
return $result;
727+
}
559728

560729

561730

src/Hydrator/Operation/Repos/Owner/Repo/Issues.php

Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public function hydrateObject(string $className, array $payload): object
3838
'ApiClients\Client\GitHubAE\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Integration($payload),
3939
'ApiClients\Client\GitHubAE\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Integration⚡️Permissions($payload),
4040
'ApiClients\Client\GitHubAE\Schema\ReactionRollup' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️ReactionRollup($payload),
41+
'ApiClients\Client\GitHubAE\Schema\ScimError' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️ScimError($payload),
4142
'ApiClients\Client\GitHubAE\Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Operations⚡️SecretScanning⚡️ListAlertsForEnterprise⚡️Response⚡️ApplicationJson⚡️ServiceUnavailable($payload),
4243
default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
4344
};
@@ -4085,6 +4086,93 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Re
40854086
}
40864087

40874088

4089+
private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️ScimError(array $payload): \ApiClients\Client\GitHubAE\Schema\ScimError
4090+
{
4091+
$properties = [];
4092+
$missingFields = [];
4093+
try {
4094+
$value = $payload['message'] ?? null;
4095+
4096+
if ($value === null) {
4097+
$properties['message'] = null;
4098+
goto after_message;
4099+
}
4100+
4101+
$properties['message'] = $value;
4102+
4103+
after_message:
4104+
4105+
$value = $payload['documentation_url'] ?? null;
4106+
4107+
if ($value === null) {
4108+
$properties['documentationUrl'] = null;
4109+
goto after_documentationUrl;
4110+
}
4111+
4112+
$properties['documentationUrl'] = $value;
4113+
4114+
after_documentationUrl:
4115+
4116+
$value = $payload['detail'] ?? null;
4117+
4118+
if ($value === null) {
4119+
$properties['detail'] = null;
4120+
goto after_detail;
4121+
}
4122+
4123+
$properties['detail'] = $value;
4124+
4125+
after_detail:
4126+
4127+
$value = $payload['status'] ?? null;
4128+
4129+
if ($value === null) {
4130+
$properties['status'] = null;
4131+
goto after_status;
4132+
}
4133+
4134+
$properties['status'] = $value;
4135+
4136+
after_status:
4137+
4138+
$value = $payload['scim_type'] ?? null;
4139+
4140+
if ($value === null) {
4141+
$properties['scimType'] = null;
4142+
goto after_scimType;
4143+
}
4144+
4145+
$properties['scimType'] = $value;
4146+
4147+
after_scimType:
4148+
4149+
$value = $payload['schemas'] ?? null;
4150+
4151+
if ($value === null) {
4152+
$properties['schemas'] = null;
4153+
goto after_schemas;
4154+
}
4155+
4156+
$properties['schemas'] = $value;
4157+
4158+
after_schemas:
4159+
4160+
} catch (\Throwable $exception) {
4161+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubAE\Schema\ScimError', $exception, stack: $this->hydrationStack);
4162+
}
4163+
4164+
if (count($missingFields) > 0) {
4165+
throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHubAE\Schema\ScimError::class, $missingFields, stack: $this->hydrationStack);
4166+
}
4167+
4168+
try {
4169+
return new \ApiClients\Client\GitHubAE\Schema\ScimError(...$properties);
4170+
} catch (\Throwable $exception) {
4171+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubAE\Schema\ScimError', $exception, stack: $this->hydrationStack);
4172+
}
4173+
}
4174+
4175+
40884176
private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Operations⚡️SecretScanning⚡️ListAlertsForEnterprise⚡️Response⚡️ApplicationJson⚡️ServiceUnavailable(array $payload): \ApiClients\Client\GitHubAE\Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable
40894177
{
40904178
$properties = [];
@@ -4184,6 +4272,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
41844272
'ApiClients\Client\GitHubAE\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Integration($object),
41854273
'ApiClients\Client\GitHubAE\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Integration⚡️Permissions($object),
41864274
'ApiClients\Client\GitHubAE\Schema\ReactionRollup' => $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️ReactionRollup($object),
4275+
'ApiClients\Client\GitHubAE\Schema\ScimError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️ScimError($object),
41874276
'ApiClients\Client\GitHubAE\Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable' => $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Operations⚡️SecretScanning⚡️ListAlertsForEnterprise⚡️Response⚡️ApplicationJson⚡️ServiceUnavailable($object),
41884277
default => throw new \LogicException('No serialization defined for $className'),
41894278
};
@@ -6499,6 +6588,71 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
64996588
}
65006589

65016590

6591+
private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️ScimError(mixed $object): mixed
6592+
{
6593+
\assert($object instanceof \ApiClients\Client\GitHubAE\Schema\ScimError);
6594+
$result = [];
6595+
6596+
$message = $object->message;
6597+
6598+
if ($message === null) {
6599+
goto after_message;
6600+
}
6601+
after_message: $result['message'] = $message;
6602+
6603+
6604+
$documentationUrl = $object->documentationUrl;
6605+
6606+
if ($documentationUrl === null) {
6607+
goto after_documentationUrl;
6608+
}
6609+
after_documentationUrl: $result['documentation_url'] = $documentationUrl;
6610+
6611+
6612+
$detail = $object->detail;
6613+
6614+
if ($detail === null) {
6615+
goto after_detail;
6616+
}
6617+
after_detail: $result['detail'] = $detail;
6618+
6619+
6620+
$status = $object->status;
6621+
6622+
if ($status === null) {
6623+
goto after_status;
6624+
}
6625+
after_status: $result['status'] = $status;
6626+
6627+
6628+
$scimType = $object->scimType;
6629+
6630+
if ($scimType === null) {
6631+
goto after_scimType;
6632+
}
6633+
after_scimType: $result['scim_type'] = $scimType;
6634+
6635+
6636+
$schemas = $object->schemas;
6637+
6638+
if ($schemas === null) {
6639+
goto after_schemas;
6640+
}
6641+
static $schemasSerializer0;
6642+
6643+
if ($schemasSerializer0 === null) {
6644+
$schemasSerializer0 = new \EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems(...array (
6645+
));
6646+
}
6647+
6648+
$schemas = $schemasSerializer0->serialize($schemas, $this);
6649+
after_schemas: $result['schemas'] = $schemas;
6650+
6651+
6652+
return $result;
6653+
}
6654+
6655+
65026656
private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Operations⚡️SecretScanning⚡️ListAlertsForEnterprise⚡️Response⚡️ApplicationJson⚡️ServiceUnavailable(mixed $object): mixed
65036657
{
65046658
\assert($object instanceof \ApiClients\Client\GitHubAE\Schema\Operations\SecretScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable);

0 commit comments

Comments
 (0)