diff --git a/codegen/Templates/csharp/Project.mustache b/codegen/Templates/csharp/Project.mustache index 02e474e..b9408b9 100644 --- a/codegen/Templates/csharp/Project.mustache +++ b/codegen/Templates/csharp/Project.mustache @@ -43,7 +43,7 @@ Aspose.Barcode for Cloud allows you to control all aspects of the image and barc - + diff --git a/codegen/Templates/dart/api_client.mustache b/codegen/Templates/dart/api_client.mustache index a44e9f9..8ec01d0 100644 --- a/codegen/Templates/dart/api_client.mustache +++ b/codegen/Templates/dart/api_client.mustache @@ -1,3 +1,5 @@ +// ignore_for_file: library_prefixes, constant_identifier_names + import 'dart:convert' show json; import 'package:http/http.dart' as Http show Client, MultipartRequest, Response; @@ -6,7 +8,7 @@ import '../aspose_barcode_cloud.dart'; import 'api_helper.dart'; import 'auth/authentication.dart'; -const String SDK_VERSION = "{{pubVersion}}"; +const SDK_VERSION = "{{pubVersion}}"; class ApiClient { diff --git a/codegen/Templates/dart/api_exception.mustache b/codegen/Templates/dart/api_exception.mustache index db136d2..027c8b5 100644 --- a/codegen/Templates/dart/api_exception.mustache +++ b/codegen/Templates/dart/api_exception.mustache @@ -1,8 +1,8 @@ class ApiException implements Exception { int code = 0; - String? message = null; - Exception? innerException = null; - StackTrace? stackTrace = null; + String? message; + Exception? innerException; + StackTrace? stackTrace; ApiException(this.code, this.message); diff --git a/codegen/Templates/dart/enum.mustache b/codegen/Templates/dart/enum.mustache index 4127c86..b489d7e 100644 --- a/codegen/Templates/dart/enum.mustache +++ b/codegen/Templates/dart/enum.mustache @@ -32,6 +32,7 @@ class {{classname}} { return value; } + @override String toString() { return value == null ? "null" : value.toString(); } diff --git a/codegen/Templates/go/api.mustache b/codegen/Templates/go/api.mustache index d02ca29..40caa51 100644 --- a/codegen/Templates/go/api.mustache +++ b/codegen/Templates/go/api.mustache @@ -7,6 +7,7 @@ import ( "io/ioutil" "net/http" "net/url" + "reflect" "strings" {{#imports}} "{{import}}" {{/imports}} @@ -108,7 +109,16 @@ func (a *{{{classname}}}Service) {{{nickname}}}(ctx context.Context{{#hasParams} {{/required}} {{^required}} if optionals != nil && optionals.{{vendorExtensions.x-exportParamName}}.IsSet() { + {{#isCollectionFormatMulti}} + values := reflect.ValueOf(optionals.{{vendorExtensions.x-exportParamName}}.Value()); + for i := 0; i < values.Len(); i++ { + item := values.Index(i) + queryParams.Add("{{baseName}}", parameterToString(item, "")) + } + {{/isCollectionFormatMulti}} + {{^isCollectionFormatMulti}} queryParams.Add("{{baseName}}", parameterToString(optionals.{{vendorExtensions.x-exportParamName}}.Value(), "{{#collectionFormat}}{{collectionFormat}}{{/collectionFormat}}")) + {{/isCollectionFormatMulti}} } {{/required}} {{/queryParams}} diff --git a/codegen/Templates/php/api.mustache b/codegen/Templates/php/api.mustache index 6b402db..6b35ed3 100644 --- a/codegen/Templates/php/api.mustache +++ b/codegen/Templates/php/api.mustache @@ -322,7 +322,6 @@ use RuntimeException; $httpBody = ''; $multipart = false; {{#pathParams}} - // path params {{#collectionFormat}} if (is_array($request->{{paramName}})) { $request->{{paramName}} = ObjectSerializer::serializeCollection($request->{{paramName}}, '{{collectionFormat}}'); @@ -332,27 +331,27 @@ use RuntimeException; $localName = lcfirst('{{baseName}}'); $resourcePath = str_replace('{' . $localName . '}', ObjectSerializer::toPathValue($request->{{paramName}}), $resourcePath); } - {{/pathParams}} - - {{#queryParams}} - // query params + {{/pathParams}} + {{#queryParams}} {{#collectionFormat}} if (is_array($request->{{paramName}})) { - $request->{{paramName}} = ObjectSerializer::serializeCollection($request->{{paramName}}, '{{collectionFormat}}', true); + $queryParamName = lcfirst('{{baseName}}'); + $queryParams[$queryParamName] = $request->{{paramName}}; } {{/collectionFormat}} + {{^collectionFormat}} if (isset($request->{{paramName}})) { - $localName = lcfirst('{{baseName}}'); - $localValue = is_bool($request->{{paramName}}) ? ($request->{{paramName}} ? 'true' : 'false') : $request->{{paramName}}; - if (strpos($resourcePath, '{' . $localName . '}') !== false) { - $resourcePath = str_replace('{' . $localName . '}', ObjectSerializer::toPathValue($localValue), $resourcePath); + $queryParamName = lcfirst('{{baseName}}'); + $queryParamValue = is_bool($request->{{paramName}}) ? ($request->{{paramName}} ? 'true' : 'false') : $request->{{paramName}}; + if (strpos($resourcePath, '{' . $queryParamName . '}') !== false) { + $resourcePath = str_replace('{' . $queryParamName . '}', ObjectSerializer::toPathValue($queryParamValue), $resourcePath); } else { - $queryParams[$localName] = ObjectSerializer::toQueryValue($localValue); + $queryParams[$queryParamName] = ObjectSerializer::toQueryValue($queryParamValue); } } - {{/queryParams}} - - {{#headerParams}} + {{/collectionFormat}} + {{/queryParams}} + {{#headerParams}} // header params {{#collectionFormat}} if (is_array($request->{{paramName}})) { @@ -362,7 +361,7 @@ use RuntimeException; if (isset($request->{{paramName}})) { $headerParams['{{paramName}}'] = ObjectSerializer::toHeaderValue($request->{{paramName}}); } - {{/headerParams}} + {{/headerParams}} $resourcePath = $this->_parseURL($resourcePath, $queryParams); @@ -524,7 +523,7 @@ use RuntimeException; { // parse the url $UrlToSign = trim($url, '/'); - $urlQuery = http_build_query($queryParams); + $urlQuery = preg_replace('/%5B[0-9]+%5D=/', '=', http_build_query($queryParams)); $urlPartToSign = $this->config->getBasePath() . '/' . parse_url($UrlToSign, PHP_URL_HOST) . parse_url($UrlToSign, PHP_URL_PATH) . '?' . $urlQuery; diff --git a/codegen/config-android.json b/codegen/config-android.json index ee4d942..98d92f3 100644 --- a/codegen/config-android.json +++ b/codegen/config-android.json @@ -4,7 +4,7 @@ "androidSdkVersion": "33", "apiPackage": "com.aspose.barcode.cloud.demo_app", "artifactId": "Android Application for Barcode Processing in the Cloud via REST API", - "artifactVersion": "24.1.0", + "artifactVersion": "24.2.0", "groupId": "com.aspose", "invokerPackage": "com.aspose.barcode.cloud.demo_app", "modelPackage": "com.aspose.barcode.cloud.demo_app.model" diff --git a/codegen/config-dart.json b/codegen/config-dart.json index 5b2df8d..5caebf0 100644 --- a/codegen/config-dart.json +++ b/codegen/config-dart.json @@ -2,6 +2,6 @@ "browserClient": false, "pubDescription": "This SDK allows you to work with Aspose.BarCode for Cloud REST APIs in your Dart or Flutter applications quickly and easily", "pubName": "aspose_barcode_cloud", - "pubVersion": "1.24.1", + "pubVersion": "1.24.2", "useEnumExtension": true } \ No newline at end of file diff --git a/codegen/config-go.json b/codegen/config-go.json index 7983631..8d79389 100644 --- a/codegen/config-go.json +++ b/codegen/config-go.json @@ -1,4 +1,4 @@ { "packageName": "barcode", - "packageVersion": "1.2401.0" + "packageVersion": "1.2402.0" } \ No newline at end of file diff --git a/codegen/config-java.json b/codegen/config-java.json index b6dbe38..905b8bd 100644 --- a/codegen/config-java.json +++ b/codegen/config-java.json @@ -3,7 +3,7 @@ "artifactDescription": "Aspose.BarCode Cloud SDK for Java", "artifactId": "aspose-barcode-cloud", "artifactUrl": "https://www.aspose.cloud", - "artifactVersion": "24.1.1", + "artifactVersion": "24.2.0", "developerEmail": "denis.averin@aspose.com", "developerName": "Denis Averin", "developerOrganization": "Aspose", diff --git a/codegen/config-php.json b/codegen/config-php.json index a2dda6d..49468e2 100644 --- a/codegen/config-php.json +++ b/codegen/config-php.json @@ -1,4 +1,4 @@ { - "artifactVersion": "24.1.0", + "artifactVersion": "24.2.0", "invokerPackage": "Aspose\\BarCode" } \ No newline at end of file diff --git a/codegen/config-python.json b/codegen/config-python.json index b37941f..cf619e3 100644 --- a/codegen/config-python.json +++ b/codegen/config-python.json @@ -1,6 +1,6 @@ { "packageName": "aspose_barcode_cloud", "packageUrl": "https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-python", - "packageVersion": "24.1.0", + "packageVersion": "24.2.0", "projectName": "aspose-barcode-cloud" } \ No newline at end of file diff --git a/codegen/config.json b/codegen/config.json index ec090e2..bdfc7ab 100644 --- a/codegen/config.json +++ b/codegen/config.json @@ -1,8 +1,8 @@ { "artifactVersion": "23.7.0", "npmName": "aspose-barcode-cloud-node", - "npmVersion": "24.1.0", + "npmVersion": "24.2.0", "packageName": "Aspose.BarCode.Cloud.Sdk", - "packageVersion": "24.1.0", + "packageVersion": "24.2.0", "supportsES6": true } \ No newline at end of file diff --git a/scripts/check-urls.py b/scripts/check-urls.py index f22e725..42ff23e 100644 --- a/scripts/check-urls.py +++ b/scripts/check-urls.py @@ -51,11 +51,12 @@ class Curl: URLS_TO_IGNORE = frozenset( [ + "http://|https://|ftp://", "http://localhost:12345", "http://localhost:12345/v3.0", "http://some", "http://urllib3.readthedocs.io/en/latest/advanced-usage.html", - "http://|https://|ftp://", + "https://api-qa.aspose.cloud", "https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-dotnet/releases/tag/v{{packageVersion}}", "https://img.shields.io/badge/api-v{{appVersion}}-lightgrey", "https://pypi.org/project/{{projectName}}/", diff --git a/scripts/start-release.bash b/scripts/start-release.bash index 02dad62..88e04ed 100755 --- a/scripts/start-release.bash +++ b/scripts/start-release.bash @@ -30,13 +30,12 @@ pushd "./submodules" for d in */ ; do pushd "$d" - git switch --create "${branch_name}" || git switch "${branch_name}" + git switch --create "${branch_name}" || git switch "${branch_name}" || true make update || true popd >/dev/null done - -python "${SCRIPT_DIR}/new-version.py" "${major}" "${minor}" - popd >/dev/null + +python "new-version.py" "${major}" "${minor}" popd >/dev/null diff --git a/submodules/android b/submodules/android index f01860a..8b9c544 160000 --- a/submodules/android +++ b/submodules/android @@ -1 +1 @@ -Subproject commit f01860a5067661dd6e1335c9953f838c1ad72f84 +Subproject commit 8b9c54471530be0508a4e14b490e613542f41b19 diff --git a/submodules/dart b/submodules/dart index b0266eb..9ab8761 160000 --- a/submodules/dart +++ b/submodules/dart @@ -1 +1 @@ -Subproject commit b0266eb22d7ed6dbd5dc5d866717cdab6cf0e69c +Subproject commit 9ab87613487276159489db672da1d88b125efdfb diff --git a/submodules/dotnet b/submodules/dotnet index 0c95c73..61affab 160000 --- a/submodules/dotnet +++ b/submodules/dotnet @@ -1 +1 @@ -Subproject commit 0c95c73b217d6bb1a8095ab6316fc22e878f102e +Subproject commit 61affaba7512da0c5f087a4135ccc3948e5d9f4c diff --git a/submodules/go b/submodules/go index ec9fcc8..71713d0 160000 --- a/submodules/go +++ b/submodules/go @@ -1 +1 @@ -Subproject commit ec9fcc82bb0fbd9689bbf0c9847aa0caea2cee8c +Subproject commit 71713d08548fa822d2d695df0808e0be5ae15c58 diff --git a/submodules/java b/submodules/java index 9a3afb9..60f55a2 160000 --- a/submodules/java +++ b/submodules/java @@ -1 +1 @@ -Subproject commit 9a3afb96e38d261cd80f864d3d3394edec714406 +Subproject commit 60f55a2904366b34be3bb102f69a98f4fc7580ac diff --git a/submodules/node b/submodules/node index bbe0cb2..d847fbe 160000 --- a/submodules/node +++ b/submodules/node @@ -1 +1 @@ -Subproject commit bbe0cb2e76e6501b57d2397c8fd4338fa7499020 +Subproject commit d847fbe9cf90f407ca666a590d1d706b46d05225 diff --git a/submodules/php b/submodules/php index 213d29c..cfbef84 160000 --- a/submodules/php +++ b/submodules/php @@ -1 +1 @@ -Subproject commit 213d29c636dd05e115f775d3bfc0e0ad94e6569d +Subproject commit cfbef840dceee87183e393520e5174f523c9820c diff --git a/submodules/python b/submodules/python index 1ef6b1d..2f0c418 160000 --- a/submodules/python +++ b/submodules/python @@ -1 +1 @@ -Subproject commit 1ef6b1dc48ded38eeee6d6116d13e41daaef0099 +Subproject commit 2f0c4183d69b258512bda92597cb874a28b7d4c1