Skip to content

Commit 1d07840

Browse files
WyriHaximusgithub-actions[bot]
authored andcommitted
[GitHub] Update to 1.1.4-7fb0426f383ed9712cce3fdba9572d5a from 1.1.4-b1df7aeeba72bb96f2ca61a7edd34136
Detected Schema changes: ``` ├─┬Paths │ ├─┬/repos/{owner}/{repo}/dependabot/alerts │ │ └─┬GET │ │ └─┬Responses │ │ └─┬200 │ │ └─┬application/json │ │ └─┬default │ │ └──[🔀] value (217903:7) │ ├─┬/repos/{owner}/{repo}/dependabot/alerts/{alert_number} │ │ └─┬GET │ │ └─┬Responses │ │ └─┬200 │ │ └─┬application/json │ │ └─┬default │ │ └──[🔀] value (218084:9) │ ├─┬/enterprises/{enterprise}/dependabot/alerts │ │ └─┬GET │ │ └─┬Responses │ │ └─┬200 │ │ └─┬application/json │ │ └─┬default │ │ └──[🔀] value (204786:7) │ ├─┬/orgs/{org}/settings/network-configurations/{network_configuration_id} │ │ ├─┬GET │ │ │ ├─┬External Docs │ │ │ │ └──[🔀] url (15667:14) │ │ │ └─┬Extensions │ │ │ └──[🔀] x-github (15685:9) │ │ ├─┬DELETE │ │ │ ├─┬External Docs │ │ │ │ └──[🔀] url (15763:14) │ │ │ └─┬Extensions │ │ │ └──[🔀] x-github (15771:9) │ │ └─┬PATCH │ │ ├─┬External Docs │ │ │ └──[🔀] url (15700:14) │ │ └─┬Extensions │ │ └──[🔀] x-github (15748:9) │ ├─┬/orgs/{org}/settings/network-configurations │ │ ├─┬GET │ │ │ ├─┬External Docs │ │ │ │ └──[🔀] url (15557:14) │ │ │ └─┬Extensions │ │ │ └──[🔀] x-github (15586:9) │ │ └─┬POST │ │ ├─┬External Docs │ │ │ └──[🔀] url (15601:14) │ │ └─┬Extensions │ │ └──[🔀] x-github (15651:9) │ ├─┬/orgs/{org}/settings/network-settings/{network_settings_id} │ │ └─┬GET │ │ ├─┬External Docs │ │ │ └──[🔀] url (15787:14) │ │ └─┬Extensions │ │ └──[🔀] x-github (15805:9) │ └─┬/orgs/{org}/dependabot/alerts │ └─┬GET │ └─┬Responses │ └─┬200 │ └─┬application/json │ └─┬default │ └──[🔀] value (204786:7) └─┬Components ├──[➖] schemas (67807:7)❌ ├─┬dependabot-alert-security-advisory │ └──[➖] properties (71241:9)❌ └─┬global-advisory └─┬epss └──[🔀] $ref (68117:11)❌ ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | paths | 16 | 0 | | components | 3 | 3 | Date: 01/25/25 | Commit: New: etc/specs/GitHub/previous.spec.yaml, Original: etc/specs/GitHub/current.spec.yaml - ❌ **BREAKING Changes**: _3_ out of _19_ - **Modifications**: _17_ - **Removals**: _2_ - **Breaking Removals**: _2_ - **Breaking Modifications**: _1_ ERROR: breaking changes discovered
1 parent ed012f9 commit 1d07840

Some content is hidden

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

45 files changed

+649
-166
lines changed

clients/GitHub/README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -9021,7 +9021,7 @@ $client->operations()->hostedCompute()->listNetworkConfigurationsForOrg(
90219021
);
90229022
```
90239023

9024-
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/settings/network-configurations#list-hosted-compute-network-configurations-for-an-organization).
9024+
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/orgs/network-configurations#list-hosted-compute-network-configurations-for-an-organization).
90259025

90269026

90279027
### hosted-compute/create-network-configuration-for-org
@@ -9041,7 +9041,7 @@ $client->operations()->hostedCompute()->createNetworkConfigurationForOrg(
90419041
);
90429042
```
90439043

9044-
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/settings/network-configurations#create-a-hosted-compute-network-configuration-for-an-organization).
9044+
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/orgs/network-configurations#create-a-hosted-compute-network-configuration-for-an-organization).
90459045

90469046

90479047
### hosted-compute/get-network-configuration-for-org
@@ -9063,7 +9063,7 @@ $client->operations()->hostedCompute()->getNetworkConfigurationForOrg( or
90639063
);
90649064
```
90659065

9066-
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/settings/network-configurations#get-a-hosted-compute-network-configuration-for-an-organization).
9066+
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/orgs/network-configurations#get-a-hosted-compute-network-configuration-for-an-organization).
90679067

90689068

90699069
### hosted-compute/delete-network-configuration-from-org
@@ -9085,7 +9085,7 @@ $client->operations()->hostedCompute()->deleteNetworkConfigurationFromOrg(
90859085
);
90869086
```
90879087

9088-
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/settings/network-configurations#delete-a-hosted-compute-network-configuration-from-an-organization).
9088+
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/orgs/network-configurations#delete-a-hosted-compute-network-configuration-from-an-organization).
90899089

90909090

90919091
### hosted-compute/update-network-configuration-for-org
@@ -9107,7 +9107,7 @@ $client->operations()->hostedCompute()->updateNetworkConfigurationForOrg(
91079107
);
91089108
```
91099109

9110-
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/settings/network-configurations#update-a-hosted-compute-network-configuration-for-an-organization).
9110+
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/orgs/network-configurations#update-a-hosted-compute-network-configuration-for-an-organization).
91119111

91129112

91139113
### hosted-compute/get-network-settings-for-org
@@ -9129,7 +9129,7 @@ $client->operations()->hostedCompute()->getNetworkSettingsForOrg( org: 'g
91299129
);
91309130
```
91319131

9132-
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/settings/network-configurations#get-a-hosted-compute-network-settings-resource-for-an-organization).
9132+
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/orgs/network-configurations#get-a-hosted-compute-network-settings-resource-for-an-organization).
91339133

91349134

91359135
### copilot/copilot-metrics-for-team

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

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

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

+31-31
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVThree;
1111
use ApiClients\Client\GitHub\Schema\GlobalAdvisory;
1212
use ApiClients\Client\GitHub\Schema\GlobalAdvisory\Cvss;
13-
use ApiClients\Client\GitHub\Schema\GlobalAdvisory\Epss;
13+
use ApiClients\Client\GitHub\Schema\SecurityAdvisoryEpss;
1414
use EventSauce\ObjectHydrator\IterableList;
1515
use EventSauce\ObjectHydrator\ObjectMapper;
1616
use EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems;
@@ -51,7 +51,7 @@ public function hydrateObject(string $className, array $payload): object
5151
'ApiClients\Client\GitHub\Schema\CvssSeverities' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities($payload),
5252
'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVThree' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVThree($payload),
5353
'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVFour' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVFour($payload),
54-
'ApiClients\Client\GitHub\Schema\GlobalAdvisory\Epss' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️GlobalAdvisory⚡️Epss($payload),
54+
'ApiClients\Client\GitHub\Schema\SecurityAdvisoryEpss' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAdvisoryEpss($payload),
5555
'ApiClients\Client\GitHub\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($payload),
5656
default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
5757
};
@@ -300,17 +300,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Glob
300300

301301
after_cvssSeverities:
302302

303-
$value = $payload['cwes'] ?? null;
304-
305-
if ($value === null) {
306-
$properties['cwes'] = null;
307-
goto after_cwes;
308-
}
309-
310-
$properties['cwes'] = $value;
311-
312-
after_cwes:
313-
314303
$value = $payload['epss'] ?? null;
315304

316305
if ($value === null) {
@@ -321,7 +310,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Glob
321310
if (is_array($value)) {
322311
try {
323312
$this->hydrationStack[] = 'epss';
324-
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️GlobalAdvisory⚡️Epss($value);
313+
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAdvisoryEpss($value);
325314
} finally {
326315
array_pop($this->hydrationStack);
327316
}
@@ -331,6 +320,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Glob
331320

332321
after_epss:
333322

323+
$value = $payload['cwes'] ?? null;
324+
325+
if ($value === null) {
326+
$properties['cwes'] = null;
327+
goto after_cwes;
328+
}
329+
330+
$properties['cwes'] = $value;
331+
332+
after_cwes:
333+
334334
$value = $payload['credits'] ?? null;
335335

336336
if ($value === null) {
@@ -538,7 +538,7 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Cvss
538538
}
539539
}
540540

541-
private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️GlobalAdvisory⚡️Epss(array $payload): Epss
541+
private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAdvisoryEpss(array $payload): SecurityAdvisoryEpss
542542
{
543543
$properties = [];
544544
$missingFields = [];
@@ -565,17 +565,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Glob
565565

566566
after_percentile:
567567
} catch (Throwable $exception) {
568-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\GlobalAdvisory\Epss', $exception, stack: $this->hydrationStack);
568+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAdvisoryEpss', $exception, stack: $this->hydrationStack);
569569
}
570570

571571
if (count($missingFields) > 0) {
572-
throw UnableToHydrateObject::dueToMissingFields(Epss::class, $missingFields, stack: $this->hydrationStack);
572+
throw UnableToHydrateObject::dueToMissingFields(SecurityAdvisoryEpss::class, $missingFields, stack: $this->hydrationStack);
573573
}
574574

575575
try {
576-
return new Epss(...$properties);
576+
return new SecurityAdvisoryEpss(...$properties);
577577
} catch (Throwable $exception) {
578-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\GlobalAdvisory\Epss', $exception, stack: $this->hydrationStack);
578+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAdvisoryEpss', $exception, stack: $this->hydrationStack);
579579
}
580580
}
581581

@@ -678,7 +678,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
678678
'ApiClients\Client\GitHub\Schema\CvssSeverities' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities($object),
679679
'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVThree' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVThree($object),
680680
'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVFour' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVFour($object),
681-
'ApiClients\Client\GitHub\Schema\GlobalAdvisory\Epss' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️GlobalAdvisory⚡️Epss($object),
681+
'ApiClients\Client\GitHub\Schema\SecurityAdvisoryEpss' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAdvisoryEpss($object),
682682
'ApiClients\Client\GitHub\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($object),
683683
default => throw new LogicException("No serialization defined for $className"),
684684
};
@@ -890,6 +890,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
890890
$cvssSeverities = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities($cvssSeverities);
891891
after_cvssSeverities: $result['cvss_severities'] = $cvssSeverities;
892892

893+
$epss = $object->epss;
894+
895+
if ($epss === null) {
896+
goto after_epss;
897+
}
898+
899+
$epss = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAdvisoryEpss($epss);
900+
after_epss: $result['epss'] = $epss;
901+
893902
$cwes = $object->cwes;
894903

895904
if ($cwes === null) {
@@ -905,15 +914,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
905914
$cwes = $cwesSerializer0->serialize($cwes, $this);
906915
after_cwes: $result['cwes'] = $cwes;
907916

908-
$epss = $object->epss;
909-
910-
if ($epss === null) {
911-
goto after_epss;
912-
}
913-
914-
$epss = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️GlobalAdvisory⚡️Epss($epss);
915-
after_epss: $result['epss'] = $epss;
916-
917917
$credits = $object->credits;
918918

919919
if ($credits === null) {
@@ -1030,9 +1030,9 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
10301030
return $result;
10311031
}
10321032

1033-
private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️GlobalAdvisory⚡️Epss(mixed $object): mixed
1033+
private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAdvisoryEpss(mixed $object): mixed
10341034
{
1035-
assert($object instanceof Epss);
1035+
assert($object instanceof SecurityAdvisoryEpss);
10361036
$result = [];
10371037

10381038
$percentage = $object->percentage;

clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Dependabot/Alerts/AlertNumber.php

+97
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use ApiClients\Client\GitHub\Schema\DependabotAlertSecurityVulnerability;
1717
use ApiClients\Client\GitHub\Schema\DependabotAlertSecurityVulnerability\FirstPatchedVersion;
1818
use ApiClients\Client\GitHub\Schema\ScimError;
19+
use ApiClients\Client\GitHub\Schema\SecurityAdvisoryEpss;
1920
use ApiClients\Client\GitHub\Schema\SimpleUser;
2021
use ApiClients\Client\GitHub\Schema\ValidationErrorSimple;
2122
use EventSauce\ObjectHydrator\IterableList;
@@ -61,6 +62,7 @@ public function hydrateObject(string $className, array $payload): object
6162
'ApiClients\Client\GitHub\Schema\CvssSeverities' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities($payload),
6263
'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVThree' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVThree($payload),
6364
'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVFour' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVFour($payload),
65+
'ApiClients\Client\GitHub\Schema\SecurityAdvisoryEpss' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAdvisoryEpss($payload),
6466
'ApiClients\Client\GitHub\Schema\DependabotAlertSecurityVulnerability' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️DependabotAlertSecurityVulnerability($payload),
6567
'ApiClients\Client\GitHub\Schema\DependabotAlertSecurityVulnerability\FirstPatchedVersion' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️DependabotAlertSecurityVulnerability⚡️FirstPatchedVersion($payload),
6668
'ApiClients\Client\GitHub\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($payload),
@@ -504,6 +506,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Depe
504506

505507
after_cvssSeverities:
506508

509+
$value = $payload['epss'] ?? null;
510+
511+
if ($value === null) {
512+
$properties['epss'] = null;
513+
goto after_epss;
514+
}
515+
516+
if (is_array($value)) {
517+
try {
518+
$this->hydrationStack[] = 'epss';
519+
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAdvisoryEpss($value);
520+
} finally {
521+
array_pop($this->hydrationStack);
522+
}
523+
}
524+
525+
$properties['epss'] = $value;
526+
527+
after_epss:
528+
507529
$value = $payload['cwes'] ?? null;
508530

509531
if ($value === null) {
@@ -766,6 +788,47 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Cvss
766788
}
767789
}
768790

791+
private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAdvisoryEpss(array $payload): SecurityAdvisoryEpss
792+
{
793+
$properties = [];
794+
$missingFields = [];
795+
try {
796+
$value = $payload['percentage'] ?? null;
797+
798+
if ($value === null) {
799+
$properties['percentage'] = null;
800+
goto after_percentage;
801+
}
802+
803+
$properties['percentage'] = $value;
804+
805+
after_percentage:
806+
807+
$value = $payload['percentile'] ?? null;
808+
809+
if ($value === null) {
810+
$properties['percentile'] = null;
811+
goto after_percentile;
812+
}
813+
814+
$properties['percentile'] = $value;
815+
816+
after_percentile:
817+
} catch (Throwable $exception) {
818+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAdvisoryEpss', $exception, stack: $this->hydrationStack);
819+
}
820+
821+
if (count($missingFields) > 0) {
822+
throw UnableToHydrateObject::dueToMissingFields(SecurityAdvisoryEpss::class, $missingFields, stack: $this->hydrationStack);
823+
}
824+
825+
try {
826+
return new SecurityAdvisoryEpss(...$properties);
827+
} catch (Throwable $exception) {
828+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAdvisoryEpss', $exception, stack: $this->hydrationStack);
829+
}
830+
}
831+
769832
private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️DependabotAlertSecurityVulnerability(array $payload): DependabotAlertSecurityVulnerability
770833
{
771834
$properties = [];
@@ -1377,6 +1440,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
13771440
'ApiClients\Client\GitHub\Schema\CvssSeverities' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities($object),
13781441
'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVThree' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVThree($object),
13791442
'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVFour' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVFour($object),
1443+
'ApiClients\Client\GitHub\Schema\SecurityAdvisoryEpss' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAdvisoryEpss($object),
13801444
'ApiClients\Client\GitHub\Schema\DependabotAlertSecurityVulnerability' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️DependabotAlertSecurityVulnerability($object),
13811445
'ApiClients\Client\GitHub\Schema\DependabotAlertSecurityVulnerability\FirstPatchedVersion' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️DependabotAlertSecurityVulnerability⚡️FirstPatchedVersion($object),
13821446
'ApiClients\Client\GitHub\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($object),
@@ -1627,6 +1691,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
16271691
$cvssSeverities = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities($cvssSeverities);
16281692
after_cvssSeverities: $result['cvss_severities'] = $cvssSeverities;
16291693

1694+
$epss = $object->epss;
1695+
1696+
if ($epss === null) {
1697+
goto after_epss;
1698+
}
1699+
1700+
$epss = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAdvisoryEpss($epss);
1701+
after_epss: $result['epss'] = $epss;
1702+
16301703
$cwes = $object->cwes;
16311704
static $cwesSerializer0;
16321705

@@ -1767,6 +1840,30 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
17671840
return $result;
17681841
}
17691842

1843+
private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAdvisoryEpss(mixed $object): mixed
1844+
{
1845+
assert($object instanceof SecurityAdvisoryEpss);
1846+
$result = [];
1847+
1848+
$percentage = $object->percentage;
1849+
1850+
if ($percentage === null) {
1851+
goto after_percentage;
1852+
}
1853+
1854+
after_percentage: $result['percentage'] = $percentage;
1855+
1856+
$percentile = $object->percentile;
1857+
1858+
if ($percentile === null) {
1859+
goto after_percentile;
1860+
}
1861+
1862+
after_percentile: $result['percentile'] = $percentile;
1863+
1864+
return $result;
1865+
}
1866+
17701867
private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️DependabotAlertSecurityVulnerability(mixed $object): mixed
17711868
{
17721869
assert($object instanceof DependabotAlertSecurityVulnerability);

0 commit comments

Comments
 (0)