mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 11:23:58 +00:00
Removed printing artifactVersion if it is not set from debug information
This commit is contained in:
parent
ce2e994306
commit
37264b0bcf
@ -95,7 +95,7 @@ class Configuration
|
||||
*
|
||||
* @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)
|
||||
@ -502,7 +502,9 @@ class Configuration
|
||||
$report .= " OS: ".php_uname().PHP_EOL;
|
||||
$report .= " PHP Version: ".phpversion().PHP_EOL;
|
||||
$report .= " OpenAPI Spec Version: {{version}}".PHP_EOL;
|
||||
{{#artifactVersion}}
|
||||
$report .= " SDK Package Version: {{artifactVersion}}".PHP_EOL;
|
||||
{{/artifactVersion}}
|
||||
$report .= " Temp Folder Path: ".self::getDefaultConfiguration()->getTempFolderPath().PHP_EOL;
|
||||
|
||||
return $report;
|
||||
|
Loading…
Reference in New Issue
Block a user