Skip to content
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
4 changes: 2 additions & 2 deletions generated/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = 'OpenAPI-Generator/1.4.1/PHP';
protected $userAgent = 'OpenAPI-Generator/1.5.0/PHP';

/**
* Debug switch (default set to false)
Expand Down Expand Up @@ -433,7 +433,7 @@ public static function toDebugReport()
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' The version of the OpenAPI document: 1.0.0' . PHP_EOL;
$report .= ' SDK Package Version: 1.4.1' . PHP_EOL;
$report .= ' SDK Package Version: 1.5.0' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down
10 changes: 5 additions & 5 deletions generated/Model/ContentStateEnd.php
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,8 @@ public function listInvalidProperties()
$invalidProperties[] = "invalid value for 'numberOfSteps', must be bigger than or equal to 1.";
}

if (!is_null($this->container['currentStep']) && ($this->container['currentStep'] < 1)) {
$invalidProperties[] = "invalid value for 'currentStep', must be bigger than or equal to 1.";
if (!is_null($this->container['currentStep']) && ($this->container['currentStep'] < 0)) {
$invalidProperties[] = "invalid value for 'currentStep', must be bigger than or equal to 0.";
}

if (!is_null($this->container['percentage']) && ($this->container['percentage'] > 100)) {
Expand Down Expand Up @@ -670,7 +670,7 @@ public function getCurrentStep()
/**
* Sets currentStep
*
* @param int|null $currentStep Current step. Use for type=segmented_progress.
* @param int|null $currentStep Current completed step count. Use for type=segmented_progress. Must be less than or equal to number_of_steps when number_of_steps is provided.
*
* @return self
*/
Expand All @@ -680,8 +680,8 @@ public function setCurrentStep($currentStep)
throw new \InvalidArgumentException('non-nullable currentStep cannot be null');
}

if (($currentStep < 1)) {
throw new \InvalidArgumentException('invalid value for $currentStep when calling ContentStateEnd., must be bigger than or equal to 1.');
if (($currentStep < 0)) {
throw new \InvalidArgumentException('invalid value for $currentStep when calling ContentStateEnd., must be bigger than or equal to 0.');
}

$this->container['currentStep'] = $currentStep;
Expand Down
10 changes: 5 additions & 5 deletions generated/Model/ContentStateStart.php
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,8 @@ public function listInvalidProperties()
$invalidProperties[] = "invalid value for 'numberOfSteps', must be bigger than or equal to 1.";
}

if (!is_null($this->container['currentStep']) && ($this->container['currentStep'] < 1)) {
$invalidProperties[] = "invalid value for 'currentStep', must be bigger than or equal to 1.";
if (!is_null($this->container['currentStep']) && ($this->container['currentStep'] < 0)) {
$invalidProperties[] = "invalid value for 'currentStep', must be bigger than or equal to 0.";
}

if (!is_null($this->container['percentage']) && ($this->container['percentage'] > 100)) {
Expand Down Expand Up @@ -662,7 +662,7 @@ public function getCurrentStep()
/**
* Sets currentStep
*
* @param int|null $currentStep Current step. Use for type=segmented_progress.
* @param int|null $currentStep Current completed step count. Use for type=segmented_progress. Set 0 when the activity has started but no segment is complete yet. Must be less than or equal to number_of_steps.
*
* @return self
*/
Expand All @@ -672,8 +672,8 @@ public function setCurrentStep($currentStep)
throw new \InvalidArgumentException('non-nullable currentStep cannot be null');
}

if (($currentStep < 1)) {
throw new \InvalidArgumentException('invalid value for $currentStep when calling ContentStateStart., must be bigger than or equal to 1.');
if (($currentStep < 0)) {
throw new \InvalidArgumentException('invalid value for $currentStep when calling ContentStateStart., must be bigger than or equal to 0.');
}

$this->container['currentStep'] = $currentStep;
Expand Down
10 changes: 5 additions & 5 deletions generated/Model/ContentStateUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,8 @@ public function listInvalidProperties()
$invalidProperties[] = "invalid value for 'numberOfSteps', must be bigger than or equal to 1.";
}

if (!is_null($this->container['currentStep']) && ($this->container['currentStep'] < 1)) {
$invalidProperties[] = "invalid value for 'currentStep', must be bigger than or equal to 1.";
if (!is_null($this->container['currentStep']) && ($this->container['currentStep'] < 0)) {
$invalidProperties[] = "invalid value for 'currentStep', must be bigger than or equal to 0.";
}

if (!is_null($this->container['percentage']) && ($this->container['percentage'] > 100)) {
Expand Down Expand Up @@ -659,7 +659,7 @@ public function getCurrentStep()
/**
* Sets currentStep
*
* @param int|null $currentStep Current step. Use for type=segmented_progress.
* @param int|null $currentStep Current completed step count. Use for type=segmented_progress. Set 0 when no segment is complete yet. Must be less than or equal to number_of_steps when number_of_steps is provided.
*
* @return self
*/
Expand All @@ -669,8 +669,8 @@ public function setCurrentStep($currentStep)
throw new \InvalidArgumentException('non-nullable currentStep cannot be null');
}

if (($currentStep < 1)) {
throw new \InvalidArgumentException('invalid value for $currentStep when calling ContentStateUpdate., must be bigger than or equal to 1.');
if (($currentStep < 0)) {
throw new \InvalidArgumentException('invalid value for $currentStep when calling ContentStateUpdate., must be bigger than or equal to 0.');
}

$this->container['currentStep'] = $currentStep;
Expand Down
10 changes: 5 additions & 5 deletions generated/Model/StreamContentState.php
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,8 @@ public function listInvalidProperties()
$invalidProperties[] = "invalid value for 'numberOfSteps', must be bigger than or equal to 1.";
}

if (!is_null($this->container['currentStep']) && ($this->container['currentStep'] < 1)) {
$invalidProperties[] = "invalid value for 'currentStep', must be bigger than or equal to 1.";
if (!is_null($this->container['currentStep']) && ($this->container['currentStep'] < 0)) {
$invalidProperties[] = "invalid value for 'currentStep', must be bigger than or equal to 0.";
}

if (!is_null($this->container['percentage']) && ($this->container['percentage'] > 100)) {
Expand Down Expand Up @@ -681,7 +681,7 @@ public function getCurrentStep()
/**
* Sets currentStep
*
* @param int|null $currentStep Use for segmented_progress.
* @param int|null $currentStep Use for segmented_progress. Set 0 when no segment is complete yet. Must be less than or equal to number_of_steps when number_of_steps is provided.
*
* @return self
*/
Expand All @@ -691,8 +691,8 @@ public function setCurrentStep($currentStep)
throw new \InvalidArgumentException('non-nullable currentStep cannot be null');
}

if (($currentStep < 1)) {
throw new \InvalidArgumentException('invalid value for $currentStep when calling StreamContentState., must be bigger than or equal to 1.');
if (($currentStep < 0)) {
throw new \InvalidArgumentException('invalid value for $currentStep when calling StreamContentState., must be bigger than or equal to 0.');
}

$this->container['currentStep'] = $currentStep;
Expand Down