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
12 changes: 6 additions & 6 deletions generated/activitysmith_openapi/models/content_state_end.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ContentStateEnd
# Total number of steps. Use for type=segmented_progress. Optional on end, and safe to change if the final workflow used more or fewer steps than originally planned.
attr_accessor :number_of_steps

# Current step. Use for type=segmented_progress.
# 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.
attr_accessor :current_step

# Progress percentage (0–100). Use for type=progress. Takes precedence over value/upper_limit if both are provided.
Expand Down Expand Up @@ -240,8 +240,8 @@ def list_invalid_properties
invalid_properties.push('invalid value for "number_of_steps", must be greater than or equal to 1.')
end

if !@current_step.nil? && @current_step < 1
invalid_properties.push('invalid value for "current_step", must be greater than or equal to 1.')
if !@current_step.nil? && @current_step < 0
invalid_properties.push('invalid value for "current_step", must be greater than or equal to 0.')
end

if !@percentage.nil? && @percentage > 100
Expand Down Expand Up @@ -277,7 +277,7 @@ def valid?
warn '[DEPRECATED] the `valid?` method is obsolete'
return false if @title.nil?
return false if !@number_of_steps.nil? && @number_of_steps < 1
return false if !@current_step.nil? && @current_step < 1
return false if !@current_step.nil? && @current_step < 0
return false if !@percentage.nil? && @percentage > 100
return false if !@percentage.nil? && @percentage < 0
return false if !@metrics.nil? && @metrics.length > 8
Expand Down Expand Up @@ -314,8 +314,8 @@ def current_step=(current_step)
fail ArgumentError, 'current_step cannot be nil'
end

if current_step < 1
fail ArgumentError, 'invalid value for "current_step", must be greater than or equal to 1.'
if current_step < 0
fail ArgumentError, 'invalid value for "current_step", must be greater than or equal to 0.'
end

@current_step = current_step
Expand Down
12 changes: 6 additions & 6 deletions generated/activitysmith_openapi/models/content_state_start.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ContentStateStart
# Total number of steps. Use for type=segmented_progress. This value can be increased or decreased later when updating or ending the same activity.
attr_accessor :number_of_steps

# Current step. Use for type=segmented_progress.
# 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.
attr_accessor :current_step

# Progress percentage (0–100). Use for type=progress. Takes precedence over value/upper_limit if both are provided.
Expand Down Expand Up @@ -230,8 +230,8 @@ def list_invalid_properties
invalid_properties.push('invalid value for "number_of_steps", must be greater than or equal to 1.')
end

if !@current_step.nil? && @current_step < 1
invalid_properties.push('invalid value for "current_step", must be greater than or equal to 1.')
if !@current_step.nil? && @current_step < 0
invalid_properties.push('invalid value for "current_step", must be greater than or equal to 0.')
end

if !@percentage.nil? && @percentage > 100
Expand Down Expand Up @@ -267,7 +267,7 @@ def valid?
warn '[DEPRECATED] the `valid?` method is obsolete'
return false if @title.nil?
return false if !@number_of_steps.nil? && @number_of_steps < 1
return false if !@current_step.nil? && @current_step < 1
return false if !@current_step.nil? && @current_step < 0
return false if !@percentage.nil? && @percentage > 100
return false if !@percentage.nil? && @percentage < 0
return false if !@metrics.nil? && @metrics.length > 8
Expand Down Expand Up @@ -304,8 +304,8 @@ def current_step=(current_step)
fail ArgumentError, 'current_step cannot be nil'
end

if current_step < 1
fail ArgumentError, 'invalid value for "current_step", must be greater than or equal to 1.'
if current_step < 0
fail ArgumentError, 'invalid value for "current_step", must be greater than or equal to 0.'
end

@current_step = current_step
Expand Down
12 changes: 6 additions & 6 deletions generated/activitysmith_openapi/models/content_state_update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ContentStateUpdate
# Total number of steps. Use for type=segmented_progress. Optional on update, and safe to change if the workflow gains or loses steps.
attr_accessor :number_of_steps

# Current step. Use for type=segmented_progress.
# 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.
attr_accessor :current_step

# Progress percentage (0–100). Use for type=progress. Takes precedence over value/upper_limit if both are provided.
Expand Down Expand Up @@ -229,8 +229,8 @@ def list_invalid_properties
invalid_properties.push('invalid value for "number_of_steps", must be greater than or equal to 1.')
end

if !@current_step.nil? && @current_step < 1
invalid_properties.push('invalid value for "current_step", must be greater than or equal to 1.')
if !@current_step.nil? && @current_step < 0
invalid_properties.push('invalid value for "current_step", must be greater than or equal to 0.')
end

if !@percentage.nil? && @percentage > 100
Expand Down Expand Up @@ -262,7 +262,7 @@ def valid?
warn '[DEPRECATED] the `valid?` method is obsolete'
return false if @title.nil?
return false if !@number_of_steps.nil? && @number_of_steps < 1
return false if !@current_step.nil? && @current_step < 1
return false if !@current_step.nil? && @current_step < 0
return false if !@percentage.nil? && @percentage > 100
return false if !@percentage.nil? && @percentage < 0
return false if !@metrics.nil? && @metrics.length > 8
Expand Down Expand Up @@ -298,8 +298,8 @@ def current_step=(current_step)
fail ArgumentError, 'current_step cannot be nil'
end

if current_step < 1
fail ArgumentError, 'invalid value for "current_step", must be greater than or equal to 1.'
if current_step < 0
fail ArgumentError, 'invalid value for "current_step", must be greater than or equal to 0.'
end

@current_step = current_step
Expand Down
12 changes: 6 additions & 6 deletions generated/activitysmith_openapi/models/stream_content_state.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class StreamContentState
# Use for segmented_progress.
attr_accessor :number_of_steps

# Use for segmented_progress.
# 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.
attr_accessor :current_step

# Use for progress. Takes precedence over value/upper_limit if both are provided.
Expand Down Expand Up @@ -247,8 +247,8 @@ def list_invalid_properties
invalid_properties.push('invalid value for "number_of_steps", must be greater than or equal to 1.')
end

if !@current_step.nil? && @current_step < 1
invalid_properties.push('invalid value for "current_step", must be greater than or equal to 1.')
if !@current_step.nil? && @current_step < 0
invalid_properties.push('invalid value for "current_step", must be greater than or equal to 0.')
end

if !@percentage.nil? && @percentage > 100
Expand Down Expand Up @@ -288,7 +288,7 @@ def valid?
warn '[DEPRECATED] the `valid?` method is obsolete'
return false if @title.nil?
return false if !@number_of_steps.nil? && @number_of_steps < 1
return false if !@current_step.nil? && @current_step < 1
return false if !@current_step.nil? && @current_step < 0
return false if !@percentage.nil? && @percentage > 100
return false if !@percentage.nil? && @percentage < 0
type_validator = EnumAttributeValidator.new('String', ["segmented_progress", "progress", "metrics", "stats", "alert"])
Expand Down Expand Up @@ -326,8 +326,8 @@ def current_step=(current_step)
fail ArgumentError, 'current_step cannot be nil'
end

if current_step < 1
fail ArgumentError, 'invalid value for "current_step", must be greater than or equal to 1.'
if current_step < 0
fail ArgumentError, 'invalid value for "current_step", must be greater than or equal to 0.'
end

@current_step = current_step
Expand Down
2 changes: 1 addition & 1 deletion generated/activitysmith_openapi/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
=end

module OpenapiClient
VERSION = '1.3.1'
VERSION = '1.4.0'
end