Skip to content

Commit 229075d

Browse files
authored
[GitHubEnterpriseCloud] Update to 1.1.4 (hash: 47ca26997ad569908b2a8c848aaf50d1) from 1.1.4 (hash: 9053e518301d1dea37ac4430156f57d5)
Detected Schema changes: ERROR: error: Error thrown when comparing: local lookups are not permitted, please set AllowFileLookup to true in the configuration component 'server-statistics-actions.yaml' does not exist in the specification local lookups are not permitted, please set AllowFileLookup to true in the configuration component 'server-statistics-packages.yaml' does not exist in the specification cannot resolve reference `server-statistics-actions.yaml`, it's missing: [210054:11] cannot resolve reference `server-statistics-packages.yaml`, it's missing: [210056:11] local lookups are not permitted, please set AllowFileLookup to true in the configuration component 'server-statistics-actions.yaml' does not exist in the specification local lookups are not permitted, please set AllowFileLookup to true in the configuration component 'server-statistics-packages.yaml' does not exist in the specification cannot resolve reference `server-statistics-actions.yaml`, it's missing: [209328:11] cannot resolve reference `server-statistics-packages.yaml`, it's missing: [209330:11] ERROR: local lookups are not permitted, please set AllowFileLookup to true in the configuration ERROR: component 'server-statistics-actions.yaml' does not exist in the specification ERROR: local lookups are not permitted, please set AllowFileLookup to true in the configuration ERROR: component 'server-statistics-packages.yaml' does not exist in the specification ERROR: cannot resolve reference `server-statistics-actions.yaml`, it's missing: [210054:11] ERROR: cannot resolve reference `server-statistics-packages.yaml`, it's missing: [210056:11] ERROR: local lookups are not permitted, please set AllowFileLookup to true in the configuration ERROR: component 'server-statistics-actions.yaml' does not exist in the specification ERROR: local lookups are not permitted, please set AllowFileLookup to true in the configuration ERROR: component 'server-statistics-packages.yaml' does not exist in the specification ERROR: cannot resolve reference `server-statistics-actions.yaml`, it's missing: [209328:11] ERROR: cannot resolve reference `server-statistics-packages.yaml`, it's missing: [209330:11]
1 parent c1c462b commit 229075d

File tree

78 files changed

+6432
-164
lines changed

Some content is hidden

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

78 files changed

+6432
-164
lines changed

README.md

Lines changed: 279 additions & 133 deletions
Large diffs are not rendered by default.

etc/openapi-client-generator.state

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace ApiClients\Client\GitHubEnterpriseCloud\Attribute\CastUnionToType\Schema\CopilotSeatDetails;
6+
7+
use ApiClients\Client\GitHubEnterpriseCloud\Schema;
8+
use Attribute;
9+
use EventSauce\ObjectHydrator\ObjectMapper;
10+
use EventSauce\ObjectHydrator\PropertyCaster;
11+
use Throwable;
12+
13+
use function array_keys;
14+
use function array_unique;
15+
use function implode;
16+
use function is_array;
17+
use function sort;
18+
19+
#[Attribute(Attribute::TARGET_PARAMETER)]
20+
final class AssigningTeam implements PropertyCaster
21+
{
22+
public function cast(mixed $value, ObjectMapper $hydrator): mixed
23+
{
24+
if (is_array($value)) {
25+
$signatureChunks = array_unique(array_keys($value));
26+
sort($signatureChunks);
27+
$signature = implode('|', $signatureChunks);
28+
if ($signature === 'id|node_id|name|slug|description|privacy|notification_setting|permission|permissions|url|html_url|members_url|repositories_url|parent') {
29+
try {
30+
return $hydrator->hydrateObject(Schema\Team::class, $value);
31+
} catch (Throwable) {
32+
}
33+
}
34+
}
35+
36+
return $value;
37+
}
38+
}

src/Client.php

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

src/ClientInterface.php

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)