Skip to content

Commit ddff910

Browse files
committed
Regenerate with grouped request objects; update.sh uses fork generator
API methods now take a single $associative_array argument (useSingleRequestParameter). update.sh now uses the FastComments openapi-generator fork, since the stock generator ignores the option for php. Updated SSO tests and README examples.
1 parent 8e0d070 commit ddff910

1,106 files changed

Lines changed: 26747 additions & 34872 deletions

File tree

Some content is hidden

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

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ composer.phar
1313

1414
# PHPUnit cache
1515
.phpunit.result.cache
16+
17+
# Local fork generator jar (downloaded on demand by update.sh)
18+
openapi-generator-cli.jar

.openapi-generator/FILES

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,6 @@ docs/Model/UsersListLocation.md
363363
docs/Model/VoteBodyParams.md
364364
docs/Model/VoteDeleteResponse.md
365365
docs/Model/VoteResponse.md
366-
docs/Model/VoteResponseStatus.md
367366
docs/Model/VoteResponseUser.md
368367
docs/Model/VoteStyle.md
369368
git_push.sh
@@ -372,6 +371,7 @@ lib/Api/ModerationApi.php
372371
lib/Api/PublicApi.php
373372
lib/ApiException.php
374373
lib/Configuration.php
374+
lib/FormDataProcessor.php
375375
lib/HeaderSelector.php
376376
lib/Model/APIAuditLog.php
377377
lib/Model/APIBanUserChangeLog.php
@@ -732,7 +732,6 @@ lib/Model/UsersListLocation.php
732732
lib/Model/VoteBodyParams.php
733733
lib/Model/VoteDeleteResponse.php
734734
lib/Model/VoteResponse.php
735-
lib/Model/VoteResponseStatus.php
736735
lib/Model/VoteResponseUser.php
737736
lib/Model/VoteStyle.php
738737
lib/ObjectSerializer.php
@@ -1097,7 +1096,6 @@ test/Model/UserTest.php
10971096
test/Model/UsersListLocationTest.php
10981097
test/Model/VoteBodyParamsTest.php
10991098
test/Model/VoteDeleteResponseTest.php
1100-
test/Model/VoteResponseStatusTest.php
11011099
test/Model/VoteResponseTest.php
11021100
test/Model/VoteResponseUserTest.php
11031101
test/Model/VoteStyleTest.php

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.12.0
1+
7.23.0-SNAPSHOT

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ $tenant_id = 'tenant_id_example'; // string
6565
$add_domain_config_params = new \FastComments\Client\Model\AddDomainConfigParams(); // \FastComments\Client\Model\AddDomainConfigParams
6666

6767
try {
68-
$result = $apiInstance->addDomainConfig($tenant_id, $add_domain_config_params);
68+
$result = $apiInstance->addDomainConfig([
69+
'tenant_id' => $tenant_id,
70+
'add_domain_config_params' => $add_domain_config_params,
71+
]);
6972
print_r($result);
7073
} catch (Exception $e) {
7174
echo 'Exception when calling DefaultApi->addDomainConfig: ', $e->getMessage(), PHP_EOL;
@@ -95,7 +98,10 @@ $tenant_id = 'tenant_id_example'; // string
9598
$url_id = 'url_id_example'; // string
9699

97100
try {
98-
$result = $apiInstance->getCommentsPublic($tenant_id, $url_id);
101+
$result = $apiInstance->getCommentsPublic([
102+
'tenant_id' => $tenant_id,
103+
'url_id' => $url_id,
104+
]);
99105
print_r($result);
100106
} catch (Exception $e) {
101107
echo 'Exception when calling PublicApi->getCommentsPublic: ', $e->getMessage(), PHP_EOL;
@@ -114,7 +120,9 @@ $apiInstance = new FastComments\Client\Api\ModerationApi(
114120
$sso = 'sso_example'; // string - SSO payload authenticating the moderator
115121

116122
try {
117-
$result = $apiInstance->getCount(null, null, null, null, null, $sso);
123+
$result = $apiInstance->getCount([
124+
'sso' => $sso,
125+
]);
118126
print_r($result);
119127
} catch (Exception $e) {
120128
echo 'Exception when calling ModerationApi->getCount: ', $e->getMessage(), PHP_EOL;

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
}
2424
],
2525
"require": {
26-
"php": "^7.4 || ^8.0",
26+
"php": "^8.1",
2727
"ext-curl": "*",
2828
"ext-json": "*",
2929
"ext-mbstring": "*",

0 commit comments

Comments
 (0)