Skip to content

Commit ca9e46d

Browse files
authored
Merge pull request #1149 from php-api-clients/GitHub/from-1.1.4-6edac6ad28d0936afe65460dc8c6732f-from-1.1.4-6edac6ad28d0936afe65460dc8c6732f
2 parents a43d055 + d695fb7 commit ca9e46d

File tree

10 files changed

+221
-133
lines changed

10 files changed

+221
-133
lines changed

clients/GitHub/etc/openapi-client-generator.state

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "89579af3f1f5255ac2c758a7d1d6bcae",
2+
"specHash": "6edac6ad28d0936afe65460dc8c6732f",
33
"generatedFiles": {
44
"files": [
55
{
@@ -5832,7 +5832,7 @@
58325832
},
58335833
{
58345834
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Pulls.php",
5835-
"hash": "60138d3a0e61f4cd49819b25927d75b3"
5835+
"hash": "d922518f8c93d21148f0207ad009c14a"
58365836
},
58375837
{
58385838
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/SecurityAdvisories.php",
@@ -29532,7 +29532,7 @@
2953229532
},
2953329533
{
2953429534
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/OrgCustomProperty.php",
29535-
"hash": "0aae19a7acee7983d4963de1ebde8c18"
29535+
"hash": "346a2591793d92ffd067dd78f1b32daa"
2953629536
},
2953729537
{
2953829538
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CustomPropertyValue.php",
@@ -29544,11 +29544,11 @@
2954429544
},
2954529545
{
2954629546
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Orgs\/CreateOrUpdateCustomProperties\/Request\/ApplicationJson.php",
29547-
"hash": "21d553f3464fcbb0d062e2f76ddb099f"
29547+
"hash": "2cf296fc3394bbb6c98cf2f3d3b996b7"
2954829548
},
2954929549
{
2955029550
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Orgs\/CreateOrUpdateCustomProperty\/Request\/ApplicationJson.php",
29551-
"hash": "002a3303609d5080ee260fb22161cf8a"
29551+
"hash": "4f93053bc6b09f3cff18e512d6586d22"
2955229552
},
2955329553
{
2955429554
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Orgs\/CreateOrUpdateCustomPropertiesValuesForRepos\/Request\/ApplicationJson.php",
@@ -29560,7 +29560,7 @@
2956029560
},
2956129561
{
2956229562
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Properties\/Schema\/CustomPropertyName.php",
29563-
"hash": "84d2feb94ce9ef5afa9c0d286334a71d"
29563+
"hash": "ccfe72340b3dbbc149134e15f22f6650"
2956429564
},
2956529565
{
2956629566
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Properties\/Values.php",
@@ -29572,15 +29572,15 @@
2957229572
},
2957329573
{
2957429574
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyCreated.php",
29575-
"hash": "3c60e4f88ed847b74a7d08f9ea582909"
29575+
"hash": "9cca145c9c9666d4b2a65cc5cbb6d463"
2957629576
},
2957729577
{
2957829578
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyDeleted.php",
2957929579
"hash": "1ad943228cde8e04a98bc01bd4c9cfc5"
2958029580
},
2958129581
{
2958229582
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyUpdated.php",
29583-
"hash": "a1d988d40d57cdfc8f77b297882db162"
29583+
"hash": "3f6a58bbe7b47887398df894d5a954db"
2958429584
},
2958529585
{
2958629586
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyValuesUpdated.php",
@@ -30000,7 +30000,7 @@
3000030000
},
3000130001
{
3000230002
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CustomProperty.php",
30003-
"hash": "c71e5f46f322f96d38862229390c00fc"
30003+
"hash": "a65528d0a98cc5095b9760a70c6b4983"
3000430004
},
3000530005
{
3000630006
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CustomPropertyValues.php",
@@ -30716,7 +30716,7 @@
3071630716
},
3071730717
{
3071830718
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleParamsCodeScanningTool.php",
30719-
"hash": "10135121514ba5aebc2b0fbec5fd0bec"
30719+
"hash": "aeea6ead534ee9ce0da99c08a1902e93"
3072030720
}
3072130721
]
3072230722
},

clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Properties/Schema/CustomPropertyName.php

+7
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,13 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
324324
goto after_defaultValue;
325325
}
326326

327+
static $defaultValueSerializer10;
328+
329+
if ($defaultValueSerializer10 === null) {
330+
$defaultValueSerializer10 = new SerializeArrayItems(...[]);
331+
}
332+
333+
$defaultValue = $defaultValueSerializer10->serialize($defaultValue, $this);
327334
after_defaultValue: $result['default_value'] = $defaultValue;
328335

329336
$description = $object->description;

clients/GitHub/src/Internal/Hydrator/WebHook/CustomProperty.php

+7
Original file line numberDiff line numberDiff line change
@@ -1321,6 +1321,13 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
13211321
goto after_defaultValue;
13221322
}
13231323

1324+
static $defaultValueSerializer10;
1325+
1326+
if ($defaultValueSerializer10 === null) {
1327+
$defaultValueSerializer10 = new SerializeArrayItems(...[]);
1328+
}
1329+
1330+
$defaultValue = $defaultValueSerializer10->serialize($defaultValue, $this);
13241331
after_defaultValue: $result['default_value'] = $defaultValue;
13251332

13261333
$description = $object->description;

clients/GitHub/src/Schema/OrgCustomProperty.php

+15-3
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,20 @@
3737
},
3838
"default_value": {
3939
"type": [
40+
"null",
4041
"string",
41-
"null"
42+
"array"
43+
],
44+
"oneOf": [
45+
{
46+
"type": "string"
47+
},
48+
{
49+
"type": "array",
50+
"items": {
51+
"type": "string"
52+
}
53+
}
4254
],
4355
"description": "Default value of the property"
4456
},
@@ -85,7 +97,7 @@
8597
"property_name": "generated",
8698
"value_type": "single_select",
8799
"required": false,
88-
"default_value": "generated",
100+
"default_value": null,
89101
"description": "generated",
90102
"allowed_values": null,
91103
"values_editable_by": "org_actors"
@@ -104,7 +116,7 @@
104116
public function __construct(#[MapFrom('property_name')]
105117
public string $propertyName, #[MapFrom('value_type')]
106118
public string $valueType, public bool|null $required, #[MapFrom('default_value')]
107-
public string|null $defaultValue, public string|null $description, #[MapFrom('allowed_values')]
119+
public string|array|null $defaultValue, public string|null $description, #[MapFrom('allowed_values')]
108120
public array|null $allowedValues, #[MapFrom('values_editable_by')]
109121
public string|null $valuesEditableBy,)
110122
{

0 commit comments

Comments
 (0)