Skip to content

Commit 2da381f

Browse files
committed
Detect odd nullable structure inside oneOf or anyOf
1 parent c56350f commit 2da381f

File tree

590 files changed

+152050
-23099
lines changed

Some content is hidden

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

590 files changed

+152050
-23099
lines changed

src/Hydrator/Operation/App.php

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

src/Hydrator/Operation/App/Installations.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,15 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
248248
goto after_suspendedBy;
249249
}
250250

251+
if (is_array($value)) {
252+
try {
253+
$this->hydrationStack[] = 'suspendedBy';
254+
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value);
255+
} finally {
256+
array_pop($this->hydrationStack);
257+
}
258+
}
259+
251260
$properties['suspendedBy'] = $value;
252261

253262
after_suspendedBy:
@@ -1151,6 +1160,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
11511160
if ($suspendedBy === null) {
11521161
goto after_suspendedBy;
11531162
}
1163+
$suspendedBy = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($suspendedBy);
11541164
after_suspendedBy: $result['suspended_by'] = $suspendedBy;
11551165

11561166

src/Hydrator/Operation/App/Installations/CbInstallationIdRcb.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,15 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
249249
goto after_suspendedBy;
250250
}
251251

252+
if (is_array($value)) {
253+
try {
254+
$this->hydrationStack[] = 'suspendedBy';
255+
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value);
256+
} finally {
257+
array_pop($this->hydrationStack);
258+
}
259+
}
260+
252261
$properties['suspendedBy'] = $value;
253262

254263
after_suspendedBy:
@@ -1218,6 +1227,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
12181227
if ($suspendedBy === null) {
12191228
goto after_suspendedBy;
12201229
}
1230+
$suspendedBy = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($suspendedBy);
12211231
after_suspendedBy: $result['suspended_by'] = $suspendedBy;
12221232

12231233

src/Hydrator/Operation/App/Installations/CbInstallationIdRcb/AccessTokens.php

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

0 commit comments

Comments
 (0)