Skip to content

Commit f9878ec

Browse files
authored
[GitHubEnterpriseCloud] Update to 1.1.4-6ceaf78da716bf4646323c82ace95d60 from 1.1.4-89b30d87e98e43cbcd5336c06c68fea3
Detected Schema changes: ERROR: error: Error thrown when comparing: local lookups are not permitted, please set AllowFileLookup to true in the configuration 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: [217756:11] ERROR: cannot resolve reference `server-statistics-packages.yaml`, it's missing: [217758: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: [217750:11] ERROR: cannot resolve reference `server-statistics-packages.yaml`, it's missing: [217752:11]
1 parent fe5482f commit f9878ec

File tree

3 files changed

+34
-5
lines changed

3 files changed

+34
-5
lines changed

etc/openapi-client-generator.state

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "89b30d87e98e43cbcd5336c06c68fea3",
2+
"specHash": "6ceaf78da716bf4646323c82ace95d60",
33
"generatedFiles": {
44
"files": [
55
{
@@ -992,7 +992,7 @@
992992
},
993993
{
994994
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodeScanningCodeqlDatabase.php",
995-
"hash": "a129e773c7c336a85070a88ed47c12c6"
995+
"hash": "faabf374f96e11f030cf15898942a40e"
996996
},
997997
{
998998
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodeScanningDefaultSetup.php",
@@ -29968,7 +29968,7 @@
2996829968
},
2996929969
{
2997029970
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CodeScanning\/Codeql\/Databases\/Language.php",
29971-
"hash": "2047fe8bf0e11f5be78e9b7717301892"
29971+
"hash": "7d8c93be2cd574bdb2cd2a9662db93ec"
2997229972
},
2997329973
{
2997429974
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CodeScanning\/DefaultSetup.php",

src/Internal/Hydrator/Operation/Repos/Owner/Repo/CodeScanning/Codeql/Databases/Language.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
163163
$properties['url'] = $value;
164164

165165
after_url:
166+
167+
$value = $payload['commit_oid'] ?? null;
168+
169+
if ($value === null) {
170+
$properties['commitOid'] = null;
171+
goto after_commitOid;
172+
}
173+
174+
$properties['commitOid'] = $value;
175+
176+
after_commitOid:
166177
} catch (Throwable $exception) {
167178
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningCodeqlDatabase', $exception, stack: $this->hydrationStack);
168179
}
@@ -673,6 +684,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
673684
$url = $object->url;
674685
after_url: $result['url'] = $url;
675686

687+
$commitOid = $object->commitOid;
688+
689+
if ($commitOid === null) {
690+
goto after_commitOid;
691+
}
692+
693+
after_commitOid: $result['commit_oid'] = $commitOid;
694+
676695
return $result;
677696
}
678697

src/Schema/CodeScanningCodeqlDatabase.php

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,13 @@
219219
"type": "string",
220220
"description": "The URL at which to download the CodeQL database. The `Accept` header must be set to the value of the `content_type` property.",
221221
"format": "uri"
222+
},
223+
"commit_oid": {
224+
"type": [
225+
"string",
226+
"null"
227+
],
228+
"description": "The commit SHA of the CodeQL databases repository at time of database creation."
222229
}
223230
},
224231
"description": "A CodeQL database."
@@ -256,7 +263,8 @@
256263
"size": 4,
257264
"created_at": "1970-01-01T00:00:00+00:00",
258265
"updated_at": "1970-01-01T00:00:00+00:00",
259-
"url": "https:\\/\\/example.com\\/"
266+
"url": "https:\\/\\/example.com\\/",
267+
"commit_oid": "generated"
260268
}';
261269

262270
/**
@@ -269,11 +277,13 @@
269277
* createdAt: The date and time at which the CodeQL database was created, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.
270278
* updatedAt: The date and time at which the CodeQL database was last updated, in ISO 8601 format':' YYYY-MM-DDTHH:MM:SSZ.
271279
* url: The URL at which to download the CodeQL database. The `Accept` header must be set to the value of the `content_type` property.
280+
* commitOid: The commit SHA of the CodeQL databases repository at time of database creation.
272281
*/
273282
public function __construct(public int $id, public string $name, public string $language, public Schema\SimpleUser $uploader, #[MapFrom('content_type')]
274283
public string $contentType, public int $size, #[MapFrom('created_at')]
275284
public string $createdAt, #[MapFrom('updated_at')]
276-
public string $updatedAt, public string $url,)
285+
public string $updatedAt, public string $url, #[MapFrom('commit_oid')]
286+
public string|null $commitOid,)
277287
{
278288
}
279289
}

0 commit comments

Comments
 (0)