Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.

Commit 3ea7469

Browse files
committed
[samples] Regenerate
1 parent 33f89fd commit 3ea7469

File tree

14 files changed

+247
-34
lines changed

14 files changed

+247
-34
lines changed

modules/openapi-generator/src/main/java/org/openapitools/codegen/templating/MustacheEngineAdapter.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ public Reader findTemplate(TemplatingExecutor generator, String name) {
6868
} catch (Exception ignored) {
6969
}
7070
}
71+
72+
// support files without targeted extension (e.g. .gitignore, README.md), etc.
73+
try {
74+
return new StringReader(generator.getFullTemplateContents(name));
75+
} catch (Exception ignored) {
76+
}
77+
7178
throw new TemplateNotFoundException(name);
7279
}
7380

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,5 @@
11
# OpenAPI Generator Ignore
2-
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
3-
4-
# Use this file to prevent files from being overwritten by the generator.
5-
# The patterns follow closely to .gitignore or .dockerignore.
6-
7-
# As an example, the C# client generator defines ApiClient.cs.
8-
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9-
#ApiClient.cs
10-
11-
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12-
#foo/*/qux
13-
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14-
15-
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16-
#foo/**/qux
17-
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18-
19-
# You can also negate patterns with an exclamation (!).
20-
# For example, you can ignore all files in a docs folder with the file extension .md:
21-
#docs/*.md
22-
# Then explicitly reverse the ignore rule for a single file:
23-
#!docs/README.md
2+
gradle/wrapper/gradle-wrapper.jar
3+
gradle/wrapper/gradle-wrapper.properties
4+
gradlew
5+
gradlew.bat

samples/client/petstore/kotlin-multiplatform/.openapi-generator/FILES

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ docs/StoreApi.md
99
docs/Tag.md
1010
docs/User.md
1111
docs/UserApi.md
12-
gradle/wrapper/gradle-wrapper.jar
13-
gradle/wrapper/gradle-wrapper.properties
14-
gradlew
15-
gradlew.bat
1612
settings.gradle
1713
src/commonMain/kotlin/org/openapitools/client/apis/PetApi.kt
1814
src/commonMain/kotlin/org/openapitools/client/apis/StoreApi.kt
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
.gitignore
2+
lib/.env.example
3+
lib/README.md
4+
lib/app/Console/Kernel.php
5+
lib/app/Exceptions/Handler.php
6+
lib/app/Http/Controllers/AnotherFakeController.php
7+
lib/app/Http/Controllers/Controller.php
8+
lib/app/Http/Controllers/FakeClassnameTags123Controller.php
9+
lib/app/Http/Controllers/FakeController.php
10+
lib/app/Http/Controllers/PetController.php
11+
lib/app/Http/Controllers/StoreController.php
12+
lib/app/Http/Controllers/UserController.php
13+
lib/app/Http/Kernel.php
14+
lib/app/Http/Middleware/EncryptCookies.php
15+
lib/app/Http/Middleware/RedirectIfAuthenticated.php
16+
lib/app/Http/Middleware/TrimStrings.php
17+
lib/app/Http/Middleware/TrustProxies.php
18+
lib/app/Http/Middleware/VerifyCsrfToken.php
19+
lib/app/Models/AdditionalPropertiesAnyType.php
20+
lib/app/Models/AdditionalPropertiesArray.php
21+
lib/app/Models/AdditionalPropertiesBoolean.php
22+
lib/app/Models/AdditionalPropertiesClass.php
23+
lib/app/Models/AdditionalPropertiesInteger.php
24+
lib/app/Models/AdditionalPropertiesNumber.php
25+
lib/app/Models/AdditionalPropertiesObject.php
26+
lib/app/Models/AdditionalPropertiesString.php
27+
lib/app/Models/Animal.php
28+
lib/app/Models/ApiResponse.php
29+
lib/app/Models/ArrayOfArrayOfNumberOnly.php
30+
lib/app/Models/ArrayOfNumberOnly.php
31+
lib/app/Models/ArrayTest.php
32+
lib/app/Models/BigCat.php
33+
lib/app/Models/BigCatAllOf.php
34+
lib/app/Models/Capitalization.php
35+
lib/app/Models/Cat.php
36+
lib/app/Models/CatAllOf.php
37+
lib/app/Models/Category.php
38+
lib/app/Models/ClassModel.php
39+
lib/app/Models/Client.php
40+
lib/app/Models/Dog.php
41+
lib/app/Models/DogAllOf.php
42+
lib/app/Models/EnumArrays.php
43+
lib/app/Models/EnumClass.php
44+
lib/app/Models/EnumTest.php
45+
lib/app/Models/FileSchemaTestClass.php
46+
lib/app/Models/FormatTest.php
47+
lib/app/Models/HasOnlyReadOnly.php
48+
lib/app/Models/MapTest.php
49+
lib/app/Models/MixedPropertiesAndAdditionalPropertiesClass.php
50+
lib/app/Models/Model200Response.php
51+
lib/app/Models/ModelReturn.php
52+
lib/app/Models/Name.php
53+
lib/app/Models/NumberOnly.php
54+
lib/app/Models/Order.php
55+
lib/app/Models/OuterComposite.php
56+
lib/app/Models/OuterEnum.php
57+
lib/app/Models/Pet.php
58+
lib/app/Models/ReadOnlyFirst.php
59+
lib/app/Models/SpecialModelName.php
60+
lib/app/Models/Tag.php
61+
lib/app/Models/TypeHolderDefault.php
62+
lib/app/Models/TypeHolderExample.php
63+
lib/app/Models/User.php
64+
lib/app/Models/XmlItem.php
65+
lib/app/Providers/AppServiceProvider.php
66+
lib/app/Providers/AuthServiceProvider.php
67+
lib/app/Providers/BroadcastServiceProvider.php
68+
lib/app/Providers/EventServiceProvider.php
69+
lib/app/Providers/RouteServiceProvider.php
70+
lib/artisan
71+
lib/bootstrap/app.php
72+
lib/bootstrap/cache/.gitignore
73+
lib/bootstrap/testingAutoload.php
74+
lib/composer.json
75+
lib/config/app.php
76+
lib/config/auth.php
77+
lib/config/broadcasting.php
78+
lib/config/cache.php
79+
lib/config/database.php
80+
lib/config/filesystems.php
81+
lib/config/hashing.php
82+
lib/config/logging.php
83+
lib/config/mail.php
84+
lib/config/queue.php
85+
lib/config/services.php
86+
lib/config/session.php
87+
lib/config/view.php
88+
lib/database/.gitignore
89+
lib/database/factories/UserFactory.php
90+
lib/database/migrations/2014_10_12_000000_create_users_table.php
91+
lib/database/migrations/2014_10_12_100000_create_password_resets_table.php
92+
lib/database/seeds/DatabaseSeeder.php
93+
lib/package.json
94+
lib/phpunit.xml
95+
lib/public/.htaccess
96+
lib/public/css/app.css
97+
lib/public/favicon.ico
98+
lib/public/index.php
99+
lib/public/js/app.js
100+
lib/public/robots.txt
101+
lib/public/web.config
102+
lib/resources/assets/js/app.js
103+
lib/resources/assets/js/bootstrap.js
104+
lib/resources/assets/js/components/ExampleComponent.vue
105+
lib/resources/assets/sass/_variables.scss
106+
lib/resources/assets/sass/app.scss
107+
lib/resources/lang/en/auth.php
108+
lib/resources/lang/en/pagination.php
109+
lib/resources/lang/en/passwords.php
110+
lib/resources/lang/en/validation.php
111+
lib/resources/views/welcome.blade.php
112+
lib/routes/api.php
113+
lib/routes/channels.php
114+
lib/routes/console.php
115+
lib/routes/web.php
116+
lib/server.php
117+
lib/storage/app/.gitignore
118+
lib/storage/app/public/.gitignore
119+
lib/storage/framework/.gitignore
120+
lib/storage/framework/cache/.gitignore
121+
lib/storage/framework/sessions/.gitignore
122+
lib/storage/framework/testing/.gitignore
123+
lib/storage/framework/views/.gitignore
124+
lib/storage/logs/.gitignore
125+
lib/tests/CreatesApplication.php
126+
lib/tests/Feature/ExampleTest.php
127+
lib/tests/TestCase.php
128+
lib/tests/Unit/ExampleTest.php
129+
lib/webpack.mix.js
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.0.3-SNAPSHOT
1+
5.0.0-SNAPSHOT

samples/server/petstore/php-laravel/lib/app/Http/Controllers/FakeController.php

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function testClientModel()
5757
/**
5858
* Operation testEndpointParameters
5959
*
60-
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트.
60+
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트.
6161
*
6262
*
6363
* @return Http response
@@ -441,4 +441,48 @@ public function fakeOuterStringSerialize()
441441

442442
return response('How about implementing fakeOuterStringSerialize as a post method ?');
443443
}
444+
/**
445+
* Operation testQueryParameterCollectionFormat
446+
*
447+
* .
448+
*
449+
*
450+
* @return Http response
451+
*/
452+
public function testQueryParameterCollectionFormat()
453+
{
454+
$input = Request::all();
455+
456+
//path params validation
457+
458+
459+
//not path params validation
460+
if (!isset($input['pipe'])) {
461+
throw new \InvalidArgumentException('Missing the required parameter $pipe when calling testQueryParameterCollectionFormat');
462+
}
463+
$pipe = $input['pipe'];
464+
465+
if (!isset($input['ioutil'])) {
466+
throw new \InvalidArgumentException('Missing the required parameter $ioutil when calling testQueryParameterCollectionFormat');
467+
}
468+
$ioutil = $input['ioutil'];
469+
470+
if (!isset($input['http'])) {
471+
throw new \InvalidArgumentException('Missing the required parameter $http when calling testQueryParameterCollectionFormat');
472+
}
473+
$http = $input['http'];
474+
475+
if (!isset($input['url'])) {
476+
throw new \InvalidArgumentException('Missing the required parameter $url when calling testQueryParameterCollectionFormat');
477+
}
478+
$url = $input['url'];
479+
480+
if (!isset($input['context'])) {
481+
throw new \InvalidArgumentException('Missing the required parameter $context when calling testQueryParameterCollectionFormat');
482+
}
483+
$context = $input['context'];
484+
485+
486+
return response('How about implementing testQueryParameterCollectionFormat as a put method ?');
487+
}
444488
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
/**
3+
* BigCat
4+
*/
5+
namespace app\Models;
6+
7+
/**
8+
* BigCat
9+
*/
10+
class BigCat {
11+
12+
/** @var string $className */
13+
private $className;
14+
15+
/** @var string $color */
16+
private $color;
17+
18+
/** @var bool $declawed */
19+
private $declawed;
20+
21+
/** @var string $kind */
22+
private $kind;
23+
24+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
/**
3+
* BigCatAllOf
4+
*/
5+
namespace app\Models;
6+
7+
/**
8+
* BigCatAllOf
9+
*/
10+
class BigCatAllOf {
11+
12+
/** @var string $kind */
13+
private $kind;
14+
15+
}

samples/server/petstore/php-laravel/lib/app/Models/FormatTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,7 @@ class FormatTest {
4848
/** @var string $password */
4949
private $password;
5050

51+
/** @var BigDecimal $bigDecimal */
52+
private $bigDecimal;
53+
5154
}

samples/server/petstore/php-laravel/lib/app/Models/TypeHolderExample.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ class TypeHolderExample {
1515
/** @var float $numberItem */
1616
private $numberItem;
1717

18+
/** @var float $floatItem */
19+
private $floatItem;
20+
1821
/** @var int $integerItem */
1922
private $integerItem;
2023

0 commit comments

Comments
 (0)