Skip to content

Commit d01fea0

Browse files
committed
Detect odd nullable structure inside oneOf or anyOf
1 parent 3990196 commit d01fea0

File tree

520 files changed

+112759
-18085
lines changed

Some content is hidden

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

520 files changed

+112759
-18085
lines changed

src/Hydrator/Operation/Admin/Tokens.php

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

src/Hydrator/Operation/Admin/Users/CbUsernameRcb/Authorizations.php

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

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⚡️GitHubAE⚡️Schema⚡️In
248248
goto after_suspendedBy;
249249
}
250250

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

253262
after_suspendedBy:
@@ -1129,6 +1138,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
11291138
if ($suspendedBy === null) {
11301139
goto after_suspendedBy;
11311140
}
1141+
$suspendedBy = $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️SimpleUser($suspendedBy);
11321142
after_suspendedBy: $result['suspended_by'] = $suspendedBy;
11331143

11341144

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⚡️GitHubAE⚡️Schema⚡️In
249249
goto after_suspendedBy;
250250
}
251251

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

254263
after_suspendedBy:
@@ -1196,6 +1205,7 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
11961205
if ($suspendedBy === null) {
11971206
goto after_suspendedBy;
11981207
}
1208+
$suspendedBy = $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️SimpleUser($suspendedBy);
11991209
after_suspendedBy: $result['suspended_by'] = $suspendedBy;
12001210

12011211

0 commit comments

Comments
 (0)