Skip to content

Commit b94dbbf

Browse files
authored
[GitHubAE] Update to 1.1.4 (hash: b775df0e68431a805225b98303e753ae) from 1.1.4 (hash: c42ed41e63b8d4b2d561cf8fd8dc40ee)
Detected Schema changes:
1 parent 2db9092 commit b94dbbf

File tree

17 files changed

+136
-124
lines changed

17 files changed

+136
-124
lines changed

etc/openapi-client-generator.state

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

src/Hydrator/Operation/Orgs/Org.php

Lines changed: 49 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -322,17 +322,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Or
322322

323323
after_htmlUrl:
324324

325-
$value = $payload['created_at'] ?? null;
326-
327-
if ($value === null) {
328-
$missingFields[] = 'created_at';
329-
goto after_createdAt;
330-
}
331-
332-
$properties['createdAt'] = $value;
333-
334-
after_createdAt:
335-
336325
$value = $payload['type'] ?? null;
337326

338327
if ($value === null) {
@@ -562,17 +551,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Or
562551

563552
after_webCommitSignoffRequired:
564553

565-
$value = $payload['updated_at'] ?? null;
566-
567-
if ($value === null) {
568-
$missingFields[] = 'updated_at';
569-
goto after_updatedAt;
570-
}
571-
572-
$properties['updatedAt'] = $value;
573-
574-
after_updatedAt:
575-
576554
$value = $payload['advanced_security_enabled_for_new_repositories'] ?? null;
577555

578556
if ($value === null) {
@@ -661,6 +639,39 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Or
661639

662640
after_secretScanningPushProtectionCustomLink:
663641

642+
$value = $payload['created_at'] ?? null;
643+
644+
if ($value === null) {
645+
$missingFields[] = 'created_at';
646+
goto after_createdAt;
647+
}
648+
649+
$properties['createdAt'] = $value;
650+
651+
after_createdAt:
652+
653+
$value = $payload['updated_at'] ?? null;
654+
655+
if ($value === null) {
656+
$missingFields[] = 'updated_at';
657+
goto after_updatedAt;
658+
}
659+
660+
$properties['updatedAt'] = $value;
661+
662+
after_updatedAt:
663+
664+
$value = $payload['archived_at'] ?? null;
665+
666+
if ($value === null) {
667+
$properties['archivedAt'] = null;
668+
goto after_archivedAt;
669+
}
670+
671+
$properties['archivedAt'] = $value;
672+
673+
after_archivedAt:
674+
664675
} catch (\Throwable $exception) {
665676
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubAE\Schema\OrganizationFull', $exception, stack: $this->hydrationStack);
666677
}
@@ -1065,10 +1076,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
10651076
after_htmlUrl: $result['html_url'] = $htmlUrl;
10661077

10671078

1068-
$createdAt = $object->createdAt;
1069-
after_createdAt: $result['created_at'] = $createdAt;
1070-
1071-
10721079
$type = $object->type;
10731080
after_type: $result['type'] = $type;
10741081

@@ -1226,10 +1233,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
12261233
after_webCommitSignoffRequired: $result['web_commit_signoff_required'] = $webCommitSignoffRequired;
12271234

12281235

1229-
$updatedAt = $object->updatedAt;
1230-
after_updatedAt: $result['updated_at'] = $updatedAt;
1231-
1232-
12331236
$advancedSecurityEnabledForNewRepositories = $object->advancedSecurityEnabledForNewRepositories;
12341237

12351238
if ($advancedSecurityEnabledForNewRepositories === null) {
@@ -1293,6 +1296,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
12931296
}
12941297
after_secretScanningPushProtectionCustomLink: $result['secret_scanning_push_protection_custom_link'] = $secretScanningPushProtectionCustomLink;
12951298

1299+
1300+
$createdAt = $object->createdAt;
1301+
after_createdAt: $result['created_at'] = $createdAt;
1302+
1303+
1304+
$updatedAt = $object->updatedAt;
1305+
after_updatedAt: $result['updated_at'] = $updatedAt;
1306+
1307+
1308+
$archivedAt = $object->archivedAt;
1309+
1310+
if ($archivedAt === null) {
1311+
goto after_archivedAt;
1312+
}
1313+
after_archivedAt: $result['archived_at'] = $archivedAt;
1314+
12961315

12971316
return $result;
12981317
}

src/Hydrator/Operation/Orgs/Org/Teams.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,6 +1053,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Te
10531053

10541054
after_updatedAt:
10551055

1056+
$value = $payload['archived_at'] ?? null;
1057+
1058+
if ($value === null) {
1059+
$properties['archivedAt'] = null;
1060+
goto after_archivedAt;
1061+
}
1062+
1063+
$properties['archivedAt'] = $value;
1064+
1065+
after_archivedAt:
1066+
10561067
} catch (\Throwable $exception) {
10571068
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubAE\Schema\TeamOrganization', $exception, stack: $this->hydrationStack);
10581069
}
@@ -1838,6 +1849,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
18381849
$updatedAt = $object->updatedAt;
18391850
after_updatedAt: $result['updated_at'] = $updatedAt;
18401851

1852+
1853+
$archivedAt = $object->archivedAt;
1854+
1855+
if ($archivedAt === null) {
1856+
goto after_archivedAt;
1857+
}
1858+
after_archivedAt: $result['archived_at'] = $archivedAt;
1859+
18411860

18421861
return $result;
18431862
}

src/Hydrator/Operation/Orgs/Org/Teams/TeamSlug.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -988,6 +988,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Te
988988

989989
after_updatedAt:
990990

991+
$value = $payload['archived_at'] ?? null;
992+
993+
if ($value === null) {
994+
$properties['archivedAt'] = null;
995+
goto after_archivedAt;
996+
}
997+
998+
$properties['archivedAt'] = $value;
999+
1000+
after_archivedAt:
1001+
9911002
} catch (\Throwable $exception) {
9921003
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubAE\Schema\TeamOrganization', $exception, stack: $this->hydrationStack);
9931004
}
@@ -1797,6 +1808,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
17971808
$updatedAt = $object->updatedAt;
17981809
after_updatedAt: $result['updated_at'] = $updatedAt;
17991810

1811+
1812+
$archivedAt = $object->archivedAt;
1813+
1814+
if ($archivedAt === null) {
1815+
goto after_archivedAt;
1816+
}
1817+
after_archivedAt: $result['archived_at'] = $archivedAt;
1818+
18001819

18011820
return $result;
18021821
}

src/Hydrator/Operation/Teams/TeamId.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -988,6 +988,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Te
988988

989989
after_updatedAt:
990990

991+
$value = $payload['archived_at'] ?? null;
992+
993+
if ($value === null) {
994+
$properties['archivedAt'] = null;
995+
goto after_archivedAt;
996+
}
997+
998+
$properties['archivedAt'] = $value;
999+
1000+
after_archivedAt:
1001+
9911002
} catch (\Throwable $exception) {
9921003
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubAE\Schema\TeamOrganization', $exception, stack: $this->hydrationStack);
9931004
}
@@ -1797,6 +1808,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
17971808
$updatedAt = $object->updatedAt;
17981809
after_updatedAt: $result['updated_at'] = $updatedAt;
17991810

1811+
1812+
$archivedAt = $object->archivedAt;
1813+
1814+
if ($archivedAt === null) {
1815+
goto after_archivedAt;
1816+
}
1817+
after_archivedAt: $result['archived_at'] = $archivedAt;
1818+
18001819

18011820
return $result;
18021821
}

0 commit comments

Comments
 (0)