Skip to content

Commit

Permalink
fix(time-off-balances): balance and used are nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions-bot committed Apr 19, 2024
1 parent 02bd1f7 commit 72ff83f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
affixapi (1.1.59)
affixapi (1.1.60)
typhoeus (~> 1.0, >= 1.0.1)

GEM
Expand Down
12 changes: 2 additions & 10 deletions lib/openapi_client/models/time_off_balance_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ def self.openapi_types
# List of attributes with nullable: true
def self.openapi_nullable
Set.new([
:'balance',
:'used',
:'policy_name',
:'policy_type',
:'remote_created_at',
Expand Down Expand Up @@ -159,14 +161,6 @@ def list_invalid_properties
invalid_properties.push('invalid value for "remote_id", remote_id cannot be nil.')
end

if @balance.nil?
invalid_properties.push('invalid value for "balance", balance cannot be nil.')
end

if @used.nil?
invalid_properties.push('invalid value for "used", used cannot be nil.')
end

invalid_properties
end

Expand All @@ -175,8 +169,6 @@ def list_invalid_properties
def valid?
return false if @employee_id.nil?
return false if @remote_id.nil?
return false if @balance.nil?
return false if @used.nil?
policy_type_validator = EnumAttributeValidator.new('String', ["null", "vacation", "sick", "personal", "jury_duty", "volunteer", "bereavement"])
return false unless policy_type_validator.valid?(@policy_type)
true
Expand Down
2 changes: 1 addition & 1 deletion lib/openapi_client/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
=end

module OpenapiClient
VERSION = '1.1.59'
VERSION = '1.1.60'
end

0 comments on commit 72ff83f

Please sign in to comment.