Skip to content

Commit f9d6b68

Browse files
committed
update samples
1 parent 1d135a4 commit f9d6b68

File tree

38 files changed

+91
-96
lines changed

38 files changed

+91
-96
lines changed

samples/client/echo_api/php-nextgen/.openapi-generator/FILES

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ docs/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.md
2424
docs/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.md
2525
git_push.sh
2626
phpunit.xml.dist
27-
src/ApiException.php
2827
src/Api/AuthApi.php
2928
src/Api/BodyApi.php
3029
src/Api/FormApi.php
3130
src/Api/HeaderApi.php
3231
src/Api/PathApi.php
3332
src/Api/QueryApi.php
33+
src/ApiException.php
3434
src/Configuration.php
3535
src/HeaderSelector.php
3636
src/Model/Bird.php

samples/client/echo_api/php-nextgen/phpunit.xml.dist

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="./vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
33
<coverage processUncoveredFiles="true">
44
<include>
5-
<directory suffix=".php">./src\/Api</directory>
6-
<directory suffix=".php">./src\/Model</directory>
5+
<directory suffix=".php">./src/Api</directory>
6+
<directory suffix=".php">./src/Model</directory>
77
</include>
88
</coverage>
99
<testsuites>

samples/client/echo_api/r/.openapi-generator/FILES

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
.travis.yml
66
DESCRIPTION
77
NAMESPACE
8-
README.md
98
R/api_client.R
109
R/api_response.R
1110
R/auth_api.R
@@ -26,6 +25,7 @@ R/tag.R
2625
R/test_form_object_multipart_request_marker.R
2726
R/test_query_style_deep_object_explode_true_object_all_of_query_object_parameter.R
2827
R/test_query_style_form_explode_true_array_string_query_object_parameter.R
28+
README.md
2929
docs/AuthApi.md
3030
docs/Bird.md
3131
docs/BodyApi.md

samples/client/petstore/R-httr2-wrapper/.openapi-generator/FILES

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
.travis.yml
66
DESCRIPTION
77
NAMESPACE
8-
README.md
98
R/allof_tag_api_response.R
109
R/animal.R
1110
R/any_of_pig.R
@@ -40,6 +39,7 @@ R/user.R
4039
R/user_api.R
4140
R/whale.R
4241
R/zebra.R
42+
README.md
4343
docs/AllofTagApiResponse.md
4444
docs/Animal.md
4545
docs/AnyOfPig.md

samples/client/petstore/R-httr2/.openapi-generator/FILES

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
.travis.yml
66
DESCRIPTION
77
NAMESPACE
8-
README.md
98
R/allof_tag_api_response.R
109
R/animal.R
1110
R/any_of_pig.R
@@ -39,6 +38,7 @@ R/user.R
3938
R/user_api.R
4039
R/whale.R
4140
R/zebra.R
41+
README.md
4242
docs/AllofTagApiResponse.md
4343
docs/Animal.md
4444
docs/AnyOfPig.md

samples/client/petstore/R/.openapi-generator/FILES

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
.travis.yml
66
DESCRIPTION
77
NAMESPACE
8-
README.md
98
R/allof_tag_api_response.R
109
R/animal.R
1110
R/any_of_pig.R
@@ -39,6 +38,7 @@ R/user.R
3938
R/user_api.R
4039
R/whale.R
4140
R/zebra.R
41+
README.md
4242
docs/AllofTagApiResponse.md
4343
docs/Animal.md
4444
docs/AnyOfPig.md

samples/client/petstore/php-nextgen/OpenAPIClient-php/.openapi-generator/FILES

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ docs/Model/TestInlineFreeformAdditionalPropertiesRequest.md
6464
docs/Model/User.md
6565
git_push.sh
6666
phpunit.xml.dist
67-
src/ApiException.php
6867
src/Api/AnotherFakeApi.php
6968
src/Api/DefaultApi.php
7069
src/Api/FakeApi.php
7170
src/Api/FakeClassnameTags123Api.php
7271
src/Api/PetApi.php
7372
src/Api/StoreApi.php
7473
src/Api/UserApi.php
74+
src/ApiException.php
7575
src/Configuration.php
7676
src/HeaderSelector.php
7777
src/Model/AdditionalPropertiesClass.php

samples/client/petstore/php-nextgen/OpenAPIClient-php/phpunit.xml.dist

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="./vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
33
<coverage processUncoveredFiles="true">
44
<include>
5-
<directory suffix=".php">./src\/Api</directory>
6-
<directory suffix=".php">./src\/Model</directory>
5+
<directory suffix=".php">./src/Api</directory>
6+
<directory suffix=".php">./src/Model</directory>
77
</include>
88
</coverage>
99
<testsuites>

samples/client/petstore/php/OpenAPIClient-php/.openapi-generator/FILES

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ docs/Model/Tag.md
6161
docs/Model/TestInlineFreeformAdditionalPropertiesRequest.md
6262
docs/Model/User.md
6363
git_push.sh
64-
lib/ApiException.php
6564
lib/Api/AnotherFakeApi.php
6665
lib/Api/DefaultApi.php
6766
lib/Api/FakeApi.php
6867
lib/Api/FakeClassnameTags123Api.php
6968
lib/Api/PetApi.php
7069
lib/Api/StoreApi.php
7170
lib/Api/UserApi.php
71+
lib/ApiException.php
7272
lib/Configuration.php
7373
lib/HeaderSelector.php
7474
lib/Model/AdditionalPropertiesClass.php

samples/client/petstore/php/psr-18/.openapi-generator/FILES

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ docs/Model/Tag.md
6161
docs/Model/TestInlineFreeformAdditionalPropertiesRequest.md
6262
docs/Model/User.md
6363
git_push.sh
64-
lib/ApiException.php
6564
lib/Api/AnotherFakeApi.php
6665
lib/Api/DefaultApi.php
6766
lib/Api/FakeApi.php
6867
lib/Api/FakeClassnameTags123Api.php
6968
lib/Api/PetApi.php
7069
lib/Api/StoreApi.php
7170
lib/Api/UserApi.php
71+
lib/ApiException.php
7272
lib/Configuration.php
7373
lib/DebugPlugin.php
7474
lib/HeaderSelector.php

samples/client/petstore/zapier/apis/PetApi.js

-5
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,6 @@ module.exports = {
6161
type: 'number',
6262
required: true,
6363
},
64-
{
65-
key: 'api_key',
66-
label: '',
67-
type: 'string',
68-
},
6964
],
7065
outputFields: [
7166
],

samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/PetApi.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public virtual IActionResult AddPet([FromBody]Pet pet)
4848
//TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
4949
// return StatusCode(405);
5050
string exampleJson = null;
51-
exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}";
51+
exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}";
5252
exampleJson = "<Pet>\n <id>123456789</id>\n <Category>\n <id>123456789</id>\n <name>aeiou</name>\n </Category>\n <name>doggie</name>\n <photoUrls>\n <photoUrls>aeiou</photoUrls>\n </photoUrls>\n <tags>\n <Tag>\n <id>123456789</id>\n <name>aeiou</name>\n </Tag>\n </tags>\n <status>aeiou</status>\n</Pet>";
5353

5454
var example = exampleJson != null
@@ -97,7 +97,7 @@ public virtual IActionResult FindPetsByStatus([FromQuery (Name = "status")][Requ
9797
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
9898
// return StatusCode(400);
9999
string exampleJson = null;
100-
exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]";
100+
exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]";
101101
exampleJson = "<Pet>\n <id>123456789</id>\n <Category>\n <id>123456789</id>\n <name>aeiou</name>\n </Category>\n <name>doggie</name>\n <photoUrls>\n <photoUrls>aeiou</photoUrls>\n </photoUrls>\n <tags>\n <Tag>\n <id>123456789</id>\n <name>aeiou</name>\n </Tag>\n </tags>\n <status>aeiou</status>\n</Pet>";
102102

103103
var example = exampleJson != null
@@ -128,7 +128,7 @@ public virtual IActionResult FindPetsByTags([FromQuery (Name = "tags")][Required
128128
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
129129
// return StatusCode(400);
130130
string exampleJson = null;
131-
exampleJson = "[ {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}, {\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n} ]";
131+
exampleJson = "[ {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}, {\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n} ]";
132132
exampleJson = "<Pet>\n <id>123456789</id>\n <Category>\n <id>123456789</id>\n <name>aeiou</name>\n </Category>\n <name>doggie</name>\n <photoUrls>\n <photoUrls>aeiou</photoUrls>\n </photoUrls>\n <tags>\n <Tag>\n <id>123456789</id>\n <name>aeiou</name>\n </Tag>\n </tags>\n <status>aeiou</status>\n</Pet>";
133133

134134
var example = exampleJson != null
@@ -162,7 +162,7 @@ public virtual IActionResult GetPetById([FromRoute (Name = "petId")][Required]lo
162162
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
163163
// return StatusCode(404);
164164
string exampleJson = null;
165-
exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}";
165+
exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}";
166166
exampleJson = "<Pet>\n <id>123456789</id>\n <Category>\n <id>123456789</id>\n <name>aeiou</name>\n </Category>\n <name>doggie</name>\n <photoUrls>\n <photoUrls>aeiou</photoUrls>\n </photoUrls>\n <tags>\n <Tag>\n <id>123456789</id>\n <name>aeiou</name>\n </Tag>\n </tags>\n <status>aeiou</status>\n</Pet>";
167167

168168
var example = exampleJson != null
@@ -198,7 +198,7 @@ public virtual IActionResult UpdatePet([FromBody]Pet pet)
198198
//TODO: Uncomment the next line to return response 405 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
199199
// return StatusCode(405);
200200
string exampleJson = null;
201-
exampleJson = "{\r\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\r\n \"name\" : \"doggie\",\r\n \"id\" : 0,\r\n \"category\" : {\r\n \"name\" : \"name\",\r\n \"id\" : 6\r\n },\r\n \"tags\" : [ {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n }, {\r\n \"name\" : \"name\",\r\n \"id\" : 1\r\n } ],\r\n \"status\" : \"available\"\r\n}";
201+
exampleJson = "{\n \"photoUrls\" : [ \"photoUrls\", \"photoUrls\" ],\n \"name\" : \"doggie\",\n \"id\" : 0,\n \"category\" : {\n \"name\" : \"name\",\n \"id\" : 6\n },\n \"tags\" : [ {\n \"name\" : \"name\",\n \"id\" : 1\n }, {\n \"name\" : \"name\",\n \"id\" : 1\n } ],\n \"status\" : \"available\"\n}";
202202
exampleJson = "<Pet>\n <id>123456789</id>\n <name>doggie</name>\n <photoUrls>\n <photoUrls>aeiou</photoUrls>\n </photoUrls>\n <tags>\n </tags>\n <status>aeiou</status>\n</Pet>";
203203

204204
var example = exampleJson != null
@@ -248,7 +248,7 @@ public virtual IActionResult UploadFile([FromRoute (Name = "petId")][Required]lo
248248
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
249249
// return StatusCode(200, default(ApiResponse));
250250
string exampleJson = null;
251-
exampleJson = "{\r\n \"code\" : 0,\r\n \"type\" : \"type\",\r\n \"message\" : \"message\"\r\n}";
251+
exampleJson = "{\n \"code\" : 0,\n \"type\" : \"type\",\n \"message\" : \"message\"\n}";
252252

253253
var example = exampleJson != null
254254
? JsonConvert.DeserializeObject<ApiResponse>(exampleJson)

samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/StoreApi.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public virtual IActionResult GetOrderById([FromRoute (Name = "orderId")][Require
9898
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
9999
// return StatusCode(404);
100100
string exampleJson = null;
101-
exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}";
101+
exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}";
102102
exampleJson = "<Order>\n <id>123456789</id>\n <petId>123456789</petId>\n <quantity>123</quantity>\n <shipDate>2000-01-23T04:56:07.000Z</shipDate>\n <status>aeiou</status>\n <complete>true</complete>\n</Order>";
103103

104104
var example = exampleJson != null
@@ -128,7 +128,7 @@ public virtual IActionResult PlaceOrder([FromBody]Order order)
128128
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
129129
// return StatusCode(400);
130130
string exampleJson = null;
131-
exampleJson = "{\r\n \"petId\" : 6,\r\n \"quantity\" : 1,\r\n \"id\" : 0,\r\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\r\n \"complete\" : false,\r\n \"status\" : \"placed\"\r\n}";
131+
exampleJson = "{\n \"petId\" : 6,\n \"quantity\" : 1,\n \"id\" : 0,\n \"shipDate\" : \"2000-01-23T04:56:07.000+00:00\",\n \"complete\" : false,\n \"status\" : \"placed\"\n}";
132132
exampleJson = "<Order>\n <id>123456789</id>\n <petId>123456789</petId>\n <quantity>123</quantity>\n <shipDate>2000-01-23T04:56:07.000Z</shipDate>\n <status>aeiou</status>\n <complete>true</complete>\n</Order>";
133133

134134
var example = exampleJson != null

samples/server/petstore/aspnetcore-3.0/src/Org.OpenAPITools/Controllers/UserApi.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public virtual IActionResult GetUserByName([FromRoute (Name = "username")][Requi
134134
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
135135
// return StatusCode(404);
136136
string exampleJson = null;
137-
exampleJson = "{\r\n \"firstName\" : \"firstName\",\r\n \"lastName\" : \"lastName\",\r\n \"password\" : \"password\",\r\n \"userStatus\" : 6,\r\n \"phone\" : \"phone\",\r\n \"id\" : 0,\r\n \"email\" : \"email\",\r\n \"username\" : \"username\"\r\n}";
137+
exampleJson = "{\n \"firstName\" : \"firstName\",\n \"lastName\" : \"lastName\",\n \"password\" : \"password\",\n \"userStatus\" : 6,\n \"phone\" : \"phone\",\n \"id\" : 0,\n \"email\" : \"email\",\n \"username\" : \"username\"\n}";
138138
exampleJson = "<User>\n <id>123456789</id>\n <username>aeiou</username>\n <firstName>aeiou</firstName>\n <lastName>aeiou</lastName>\n <email>aeiou</email>\n <password>aeiou</password>\n <phone>aeiou</phone>\n <userStatus>123</userStatus>\n</User>";
139139

140140
var example = exampleJson != null

0 commit comments

Comments
 (0)