Skip to content

Commit a3935bf

Browse files
authored
Release 24.9 (#110)
* Update Swagger spec * Temporary remove ChecksumValidation because of error * Fix checksumValidation * Fixing PHP Add $fileField to PHP * Bump version * Update sumbodules * Fix check-urls.py script
1 parent 3e488b3 commit a3935bf

21 files changed

+79
-87
lines changed

codegen/Templates/nodejs/api.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ export class {{classname}} {
242242
{{^isFile}}
243243
if (request.{{paramName}} != null) {
244244
{{^isListContainer}}
245-
formParams.push(['{{baseName}}', ObjectSerializer.serialize(request.{{paramName}}, '{{{dataType}}}')]);
245+
formParams.push(['{{baseName}}', ObjectSerializer.serialize(request.{{paramName}}, {{#isString}}'string'{{/isString}}{{^isString}}'{{{dataType}}}'{{/isString}})]);
246246
{{/isListContainer}}
247247
{{#isListContainer}}
248248
for (const oneParam of request.{{paramName}}) {

codegen/Templates/nodejs/package.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
"npm-check-updates": "^16.14.20",
155155
"prettier": "^3.3.3",
156156
"ts-jest": "^29.1.3",
157-
"tslib": "^2.6.3",
157+
"tslib": "^2.7.0",
158158
"uuid": "^10.0.0"
159159
},
160160
"bugs": {

codegen/Templates/php/api.mustache

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ use RuntimeException;
371371
$handle = fopen($filename, 'rb');
372372
$fsize = filesize($filename);
373373
$contents = fread($handle, $fsize);
374+
$fileField = '{{baseName}}';
374375
$formParams['{{baseName}}'][] = $contents;
375376
{{/isFile}}
376377
{{^isFile}}
@@ -383,7 +384,7 @@ use RuntimeException;
383384
{{/isCollectionFormatMulti}}
384385
{{^isCollectionFormatMulti}}
385386
if (isset($request->{{paramName}})) {
386-
$formParams['{{baseName}}'][] = ObjectSerializer::toFormValue($request->{{paramName}});
387+
$formParams['{{baseName}}'] = ObjectSerializer::toFormValue($request->{{paramName}});
387388
}
388389
{{/isCollectionFormatMulti}}
389390
{{/isFile}}
@@ -424,11 +425,25 @@ use RuntimeException;
424425
if ($multipart) {
425426
$multipartContents = [];
426427
foreach ($formParams as $formParamName => $formParamValues) {
427-
foreach ($formParamValues as $formParamValue) {
428+
if (is_array($formParamValues)) {
429+
foreach ($formParamValues as $formParamValue) {
430+
if ($formParamName === $fileField) {
431+
$multipartContents[] = [
432+
'name' => $formParamName,
433+
'contents' => $formParamValue,
434+
'filename' => $filename
435+
];
436+
} else {
437+
$multipartContents[] = [
438+
'name' => $formParamName,
439+
'contents' => $formParamValue,
440+
];
441+
}
442+
}
443+
} else {
428444
$multipartContents[] = [
429445
'name' => $formParamName,
430-
'contents' => $formParamValue,
431-
'filename' => $filename
446+
'contents' => $formParamValues,
432447
];
433448
}
434449
}

codegen/config-android.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"androidSdkVersion": "33",
55
"apiPackage": "com.aspose.barcode.cloud.demo_app",
66
"artifactId": "Android Application for Barcode Processing in the Cloud via REST API",
7-
"artifactVersion": "24.8.0",
7+
"artifactVersion": "24.9.0",
88
"groupId": "com.aspose",
99
"invokerPackage": "com.aspose.barcode.cloud.demo_app",
1010
"modelPackage": "com.aspose.barcode.cloud.demo_app.model"

codegen/config-dart.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"browserClient": false,
44
"pubDescription": "This SDK allows you to work with Aspose.BarCode for Cloud REST APIs in your Dart or Flutter applications quickly and easily",
55
"pubName": "aspose_barcode_cloud",
6-
"pubVersion": "1.24.8",
6+
"pubVersion": "1.24.9",
77
"useEnumExtension": true
88
}

codegen/config-go.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"packageName": "barcode",
3-
"packageVersion": "1.2408.0"
3+
"packageVersion": "1.2409.0"
44
}

codegen/config-java.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"artifactDescription": "Aspose.BarCode Cloud SDK for Java",
44
"artifactId": "aspose-barcode-cloud",
55
"artifactUrl": "https://www.aspose.cloud",
6-
"artifactVersion": "24.8.0",
6+
"artifactVersion": "24.9.0",
77
"developerEmail": "[email protected]",
88
"developerName": "Denis Averin",
99
"developerOrganization": "Aspose",

codegen/config-php.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"artifactVersion": "24.8.0",
2+
"artifactVersion": "24.9.0",
33
"invokerPackage": "Aspose\\BarCode"
44
}

codegen/config-python.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"packageName": "aspose_barcode_cloud",
33
"packageUrl": "https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-python",
4-
"packageVersion": "24.8.0",
4+
"packageVersion": "24.9.0",
55
"projectName": "aspose-barcode-cloud"
66
}

codegen/config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"artifactVersion": "23.7.0",
33
"npmName": "aspose-barcode-cloud-node",
4-
"npmVersion": "24.8.0",
4+
"npmVersion": "24.9.0",
55
"packageName": "Aspose.BarCode.Cloud.Sdk",
6-
"packageVersion": "24.8.0",
6+
"packageVersion": "24.9.0",
77
"supportsES6": true
88
}

0 commit comments

Comments
 (0)