Skip to content

Commit 8effb2d

Browse files
author
Orkuncakilkaya
committed
fix: version update on config.json
1 parent 826a7a2 commit 8effb2d

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
This PHP package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
2323

2424
- API version: 3
25-
- Package version: 0.0.1
25+
- Package version: 0.2.1
2626
- Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen
2727

2828
## Requirements

config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
"gitUserId": "fingerprintjs",
99
"gitRepoId": "fingerprint-pro-server-api-php-sdk",
1010
"description": "Fingerprint Pro Server API provides a way for validating visitors’ data issued by Fingerprint Pro.",
11-
"artifactVersion": "0.0.1"
11+
"artifactVersion": "0.2.1"
1212
}

scripts/generate.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ done
1212

1313
# jar was downloaded from here https://repo1.maven.org/maven2/io/swagger/codegen/v3/swagger-codegen-cli/3.0.34/
1414

15+
sed -i "s/\"artifactVersion\": \"[0-9]*\.[0-9]*\.[0-9]*\"/\"artifactVersion\": \"$VERSION\"/g" config.json
16+
1517
java -jar ./bin/swagger-codegen-cli.jar generate -t ./template -l php -i ./res/fingerprint-server-api.yaml -o ./ -c config.json
1618

1719
mv -f src/README.md ./README.md
1820
mv -f src/composer.json composer.json
1921
rm -rf docs
2022
mv -f src/docs ./docs
2123
rm -rf src/test
22-
rm src/{git_push.sh,.php_cs,.travis.yml,phpunit.xml.dist}
23-
sed -i "s/\"version\": \"[0-9]*\.[0-9]*\.[0-9]*\"/\"version\": \"$VERSION\"/g" composer.json
24+
rm src/{git_push.sh,.php_cs,.travis.yml,phpunit.xml.dist}

src/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class Configuration
8787
*
8888
* @var string
8989
*/
90-
protected $userAgent = 'Swagger-Codegen/0.0.1/php';
90+
protected $userAgent = 'Swagger-Codegen/0.2.1/php';
9191

9292
/**
9393
* Debug switch (default set to false)
@@ -396,7 +396,7 @@ public static function toDebugReport()
396396
$report .= ' OS: ' . php_uname() . PHP_EOL;
397397
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
398398
$report .= ' OpenAPI Spec Version: 3' . PHP_EOL;
399-
$report .= ' SDK Package Version: 0.0.1' . PHP_EOL;
399+
$report .= ' SDK Package Version: 0.2.1' . PHP_EOL;
400400
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;
401401

402402
return $report;

0 commit comments

Comments
 (0)