Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 24.2 #95

Merged
merged 8 commits into from
Feb 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion codegen/Templates/csharp/Project.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Aspose.Barcode for Cloud allows you to control all aspects of the image and barc
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>

Expand Down
4 changes: 3 additions & 1 deletion codegen/Templates/dart/api_client.mustache
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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 {

Expand Down
6 changes: 3 additions & 3 deletions codegen/Templates/dart/api_exception.mustache
Original file line number Diff line number Diff line change
@@ -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);

Expand Down
1 change: 1 addition & 0 deletions codegen/Templates/dart/enum.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class {{classname}} {
return value;
}

@override
String toString() {
return value == null ? "null" : value.toString();
}
Expand Down
10 changes: 10 additions & 0 deletions codegen/Templates/go/api.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"io/ioutil"
"net/http"
"net/url"
"reflect"
"strings"
{{#imports}} "{{import}}"
{{/imports}}
Expand Down Expand Up @@ -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}}
Expand Down
31 changes: 15 additions & 16 deletions codegen/Templates/php/api.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -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}}');
Expand All @@ -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}})) {
Expand All @@ -362,7 +361,7 @@ use RuntimeException;
if (isset($request->{{paramName}})) {
$headerParams['{{paramName}}'] = ObjectSerializer::toHeaderValue($request->{{paramName}});
}
{{/headerParams}}
{{/headerParams}}

$resourcePath = $this->_parseURL($resourcePath, $queryParams);

Expand Down Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion codegen/config-android.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion codegen/config-dart.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
2 changes: 1 addition & 1 deletion codegen/config-go.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"packageName": "barcode",
"packageVersion": "1.2401.0"
"packageVersion": "1.2402.0"
}
2 changes: 1 addition & 1 deletion codegen/config-java.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion codegen/config-php.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"artifactVersion": "24.1.0",
"artifactVersion": "24.2.0",
"invokerPackage": "Aspose\\BarCode"
}
2 changes: 1 addition & 1 deletion codegen/config-python.json
Original file line number Diff line number Diff line change
@@ -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"
}
4 changes: 2 additions & 2 deletions codegen/config.json
Original file line number Diff line number Diff line change
@@ -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
}
3 changes: 2 additions & 1 deletion scripts/check-urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}}/",
Expand Down
7 changes: 3 additions & 4 deletions scripts/start-release.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion submodules/android
2 changes: 1 addition & 1 deletion submodules/dart
Submodule dart updated 101 files