forked from loafle/openapi-generator-original
Removed printing artifactVersion if it is not set from debug information
This commit is contained in:
@@ -95,7 +95,7 @@ class Configuration
|
|||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $userAgent = "{{#httpUserAgent}}{{{.}}}{{/httpUserAgent}}{{^httpUserAgent}}Swagger-Codegen{{#artifactVersion}}/{{{.}}}{{/artifactVersion}}/php{{/httpUserAgent}}";
|
protected $userAgent = "{{#httpUserAgent}}{{{.}}}{{/httpUserAgent}}{{^httpUserAgent}}Swagger-Codegen/{{#artifactVersion}}{{{.}}}{{/artifactVersion}}{{^artifactVersion}}1.0.0{{/artifactVersion}}/php{{/httpUserAgent}}";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Debug switch (default set to false)
|
* Debug switch (default set to false)
|
||||||
@@ -502,7 +502,9 @@ class Configuration
|
|||||||
$report .= " OS: ".php_uname().PHP_EOL;
|
$report .= " OS: ".php_uname().PHP_EOL;
|
||||||
$report .= " PHP Version: ".phpversion().PHP_EOL;
|
$report .= " PHP Version: ".phpversion().PHP_EOL;
|
||||||
$report .= " OpenAPI Spec Version: {{version}}".PHP_EOL;
|
$report .= " OpenAPI Spec Version: {{version}}".PHP_EOL;
|
||||||
|
{{#artifactVersion}}
|
||||||
$report .= " SDK Package Version: {{artifactVersion}}".PHP_EOL;
|
$report .= " SDK Package Version: {{artifactVersion}}".PHP_EOL;
|
||||||
|
{{/artifactVersion}}
|
||||||
$report .= " Temp Folder Path: ".self::getDefaultConfiguration()->getTempFolderPath().PHP_EOL;
|
$report .= " Temp Folder Path: ".self::getDefaultConfiguration()->getTempFolderPath().PHP_EOL;
|
||||||
|
|
||||||
return $report;
|
return $report;
|
||||||
|
|||||||
Reference in New Issue
Block a user