Skip to content

Commit b954a0f

Browse files
committed
merge master
2 parents 2dbb941 + 8d32203 commit b954a0f

187 files changed

Lines changed: 987 additions & 952 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.

bin/configs/csharp-generichost-latest-dateTimeOffset.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ additionalProperties:
88
modelPropertySorting: alphabetical
99
operationParameterSorting: alphabetical
1010
useDateTimeOffset: true
11+
treatWarningsAsErrors: true
12+
warningsNotAsErrors: CS0612

modules/openapi-generator/src/main/resources/csharp/libraries/generichost/api.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ namespace {{packageName}}.{{apiPackage}}
388388
uriBuilderLocalVar.Scheme = HttpClient.BaseAddress.Scheme;
389389
uriBuilderLocalVar.Path = HttpClient.BaseAddress.AbsolutePath == "/"
390390
? "{{{path}}}"
391-
: string.Concat(HttpClient.BaseAddress.AbsolutePath, "{{{path}}}");
391+
: string.Concat(HttpClient.BaseAddress.AbsolutePath.TrimEnd('/'), "{{{path}}}");
392392
{{/servers}}
393393
{{#servers}}
394394
{{#-first}}

modules/openapi-generator/src/main/resources/php-nextgen/api.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ use {{invokerPackage}}\ObjectSerializer;
732732

733733
$formData = $formDataProcessor->prepare([
734734
{{/-first}}
735-
'{{paramName}}' => ${{paramName}},
735+
'{{baseName}}' => ${{paramName}},
736736
{{#-last}}
737737
]);
738738

modules/openapi-generator/src/main/resources/php-nextgen/model.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@
2121

2222
namespace {{modelPackage}};
2323
{{^isEnum}}
24-
{{^parentSchema}}
2524

25+
{{^parentSchema}}
2626
use ArrayAccess;
2727
use JsonSerializable;
28+
{{/parentSchema}}
2829
use InvalidArgumentException;
2930
use ReturnTypeWillChange;
3031
use {{invokerPackage}}\ObjectSerializer;
31-
{{/parentSchema}}
3232
{{/isEnum}}
3333

3434
/**

modules/openapi-generator/src/main/resources/php/api.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ use {{invokerPackage}}\ObjectSerializer;
654654

655655
$formData = $formDataProcessor->prepare([
656656
{{/-first}}
657-
'{{paramName}}' => ${{paramName}},
657+
'{{baseName}}' => ${{paramName}},
658658
{{#-last}}
659659
]);
660660

modules/openapi-generator/src/main/resources/php/libraries/psr-18/api.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ use function sprintf;
612612

613613
$formData = $formDataProcessor->prepare([
614614
{{/-first}}
615-
'{{paramName}}' => ${{paramName}},
615+
'{{baseName}}' => ${{paramName}},
616616
{{#-last}}
617617
]);
618618

samples/client/echo_api/php-nextgen-streaming/src/Api/BodyApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,7 @@ public function testBodyMultipartFormdataSingleBinaryRequest(
11751175
$formDataProcessor = new FormDataProcessor();
11761176

11771177
$formData = $formDataProcessor->prepare([
1178-
'my_file' => $my_file,
1178+
'my-file' => $my_file,
11791179
]);
11801180

11811181
$formParams = $formDataProcessor->flatten($formData);

samples/client/echo_api/php-nextgen-streaming/src/Model/DataQuery.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828

2929
namespace OpenAPI\Client\Model;
3030

31+
use InvalidArgumentException;
32+
use ReturnTypeWillChange;
33+
use OpenAPI\Client\ObjectSerializer;
34+
3135
/**
3236
* DataQuery Class Doc Comment
3337
*

samples/client/echo_api/php-nextgen/src/Api/BodyApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,7 @@ public function testBodyMultipartFormdataSingleBinaryRequest(
11751175
$formDataProcessor = new FormDataProcessor();
11761176

11771177
$formData = $formDataProcessor->prepare([
1178-
'my_file' => $my_file,
1178+
'my-file' => $my_file,
11791179
]);
11801180

11811181
$formParams = $formDataProcessor->flatten($formData);

samples/client/echo_api/php-nextgen/src/Model/DataQuery.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828

2929
namespace OpenAPI\Client\Model;
3030

31+
use InvalidArgumentException;
32+
use ReturnTypeWillChange;
33+
use OpenAPI\Client\ObjectSerializer;
34+
3135
/**
3236
* DataQuery Class Doc Comment
3337
*

0 commit comments

Comments
 (0)