Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
334 changes: 183 additions & 151 deletions clients/GitHub/etc/openapi-client-generator.state

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

namespace ApiClients\Client\GitHub\Error\Operations\Git\CreateBlob\Response\ApplicationJson;

use ApiClients\Client\GitHub\Schema;
use Error;

final class UnprocessableEntity extends Error
{
public function __construct(public int $status, public Schema\Operations\Git\CreateBlob\Response\ApplicationJson\UnprocessableEntity $error)
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

declare(strict_types=1);

namespace ApiClients\Client\GitHub\Error\Operations\Repos\CreateOrUpdateFileContents\Response\ApplicationJson;

use ApiClients\Client\GitHub\Schema;
use Error;

final class Conflict extends Error
{
public function __construct(public int $status, public Schema\Operations\Repos\CreateOrUpdateFileContents\Response\ApplicationJson\Conflict $error)
{
}
}
38 changes: 19 additions & 19 deletions clients/GitHub/src/Internal/Hydrator/Operation/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Inte

after_nodeId:

$value = $payload['client_id'] ?? null;

if ($value === null) {
$properties['clientId'] = null;
goto after_clientId;
}

$properties['clientId'] = $value;

after_clientId:

$value = $payload['owner'] ?? null;

if ($value === null) {
Expand Down Expand Up @@ -215,17 +226,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Inte

after_installationsCount:

$value = $payload['client_id'] ?? null;

if ($value === null) {
$properties['clientId'] = null;
goto after_clientId;
}

$properties['clientId'] = $value;

after_clientId:

$value = $payload['client_secret'] ?? null;

if ($value === null) {
Expand Down Expand Up @@ -712,6 +712,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
$nodeId = $object->nodeId;
after_nodeId: $result['node_id'] = $nodeId;

$clientId = $object->clientId;

if ($clientId === null) {
goto after_clientId;
}

after_clientId: $result['client_id'] = $clientId;

$owner = $object->owner;

if ($owner === null) {
Expand Down Expand Up @@ -766,14 +774,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema

after_installationsCount: $result['installations_count'] = $installationsCount;

$clientId = $object->clientId;

if ($clientId === null) {
goto after_clientId;
}

after_clientId: $result['client_id'] = $clientId;

$clientSecret = $object->clientSecret;

if ($clientSecret === null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Inte

after_nodeId:

$value = $payload['client_id'] ?? null;

if ($value === null) {
$properties['clientId'] = null;
goto after_clientId;
}

$properties['clientId'] = $value;

after_clientId:

$value = $payload['owner'] ?? null;

if ($value === null) {
Expand Down Expand Up @@ -219,17 +230,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Inte

after_installationsCount:

$value = $payload['client_id'] ?? null;

if ($value === null) {
$properties['clientId'] = null;
goto after_clientId;
}

$properties['clientId'] = $value;

after_clientId:

$value = $payload['client_secret'] ?? null;

if ($value === null) {
Expand Down Expand Up @@ -833,6 +833,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
$nodeId = $object->nodeId;
after_nodeId: $result['node_id'] = $nodeId;

$clientId = $object->clientId;

if ($clientId === null) {
goto after_clientId;
}

after_clientId: $result['client_id'] = $clientId;

$owner = $object->owner;

if ($owner === null) {
Expand Down Expand Up @@ -887,14 +895,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema

after_installationsCount: $result['installations_count'] = $installationsCount;

$clientId = $object->clientId;

if ($clientId === null) {
goto after_clientId;
}

after_clientId: $result['client_id'] = $clientId;

$clientSecret = $object->clientSecret;

if ($clientSecret === null) {
Expand Down
38 changes: 19 additions & 19 deletions clients/GitHub/src/Internal/Hydrator/Operation/Apps/AppSlug.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Inte

after_nodeId:

$value = $payload['client_id'] ?? null;

if ($value === null) {
$properties['clientId'] = null;
goto after_clientId;
}

$properties['clientId'] = $value;

after_clientId:

$value = $payload['owner'] ?? null;

if ($value === null) {
Expand Down Expand Up @@ -217,17 +228,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Inte

after_installationsCount:

$value = $payload['client_id'] ?? null;

if ($value === null) {
$properties['clientId'] = null;
goto after_clientId;
}

$properties['clientId'] = $value;

after_clientId:

$value = $payload['client_secret'] ?? null;

if ($value === null) {
Expand Down Expand Up @@ -778,6 +778,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
$nodeId = $object->nodeId;
after_nodeId: $result['node_id'] = $nodeId;

$clientId = $object->clientId;

if ($clientId === null) {
goto after_clientId;
}

after_clientId: $result['client_id'] = $clientId;

$owner = $object->owner;

if ($owner === null) {
Expand Down Expand Up @@ -832,14 +840,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema

after_installationsCount: $result['installations_count'] = $installationsCount;

$clientId = $object->clientId;

if ($clientId === null) {
goto after_clientId;
}

after_clientId: $result['client_id'] = $clientId;

$clientSecret = $object->clientSecret;

if ($clientSecret === null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Inte

after_nodeId:

$value = $payload['client_id'] ?? null;

if ($value === null) {
$properties['clientId'] = null;
goto after_clientId;
}

$properties['clientId'] = $value;

after_clientId:

$value = $payload['owner'] ?? null;

if ($value === null) {
Expand Down Expand Up @@ -569,17 +580,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Inte

after_installationsCount:

$value = $payload['client_id'] ?? null;

if ($value === null) {
$properties['clientId'] = null;
goto after_clientId;
}

$properties['clientId'] = $value;

after_clientId:

$value = $payload['client_secret'] ?? null;

if ($value === null) {
Expand Down Expand Up @@ -1416,6 +1416,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
$nodeId = $object->nodeId;
after_nodeId: $result['node_id'] = $nodeId;

$clientId = $object->clientId;

if ($clientId === null) {
goto after_clientId;
}

after_clientId: $result['client_id'] = $clientId;

$owner = $object->owner;

if ($owner === null) {
Expand Down Expand Up @@ -1470,14 +1478,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema

after_installationsCount: $result['installations_count'] = $installationsCount;

$clientId = $object->clientId;

if ($clientId === null) {
goto after_clientId;
}

after_clientId: $result['client_id'] = $clientId;

$clientSecret = $object->clientSecret;

if ($clientSecret === null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Inte

after_nodeId:

$value = $payload['client_id'] ?? null;

if ($value === null) {
$properties['clientId'] = null;
goto after_clientId;
}

$properties['clientId'] = $value;

after_clientId:

$value = $payload['owner'] ?? null;

if ($value === null) {
Expand Down Expand Up @@ -569,17 +580,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Inte

after_installationsCount:

$value = $payload['client_id'] ?? null;

if ($value === null) {
$properties['clientId'] = null;
goto after_clientId;
}

$properties['clientId'] = $value;

after_clientId:

$value = $payload['client_secret'] ?? null;

if ($value === null) {
Expand Down Expand Up @@ -1416,6 +1416,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
$nodeId = $object->nodeId;
after_nodeId: $result['node_id'] = $nodeId;

$clientId = $object->clientId;

if ($clientId === null) {
goto after_clientId;
}

after_clientId: $result['client_id'] = $clientId;

$owner = $object->owner;

if ($owner === null) {
Expand Down Expand Up @@ -1470,14 +1478,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema

after_installationsCount: $result['installations_count'] = $installationsCount;

$clientId = $object->clientId;

if ($clientId === null) {
goto after_clientId;
}

after_clientId: $result['client_id'] = $clientId;

$clientSecret = $object->clientSecret;

if ($clientSecret === null) {
Expand Down
Loading
Loading