Skip to content

Commit

Permalink
fix: country not nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions-bot committed Apr 17, 2024
1 parent 465fc99 commit c306123
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 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.56)
affixapi (1.1.57)
typhoeus (~> 1.0, >= 1.0.1)

GEM
Expand Down
6 changes: 5 additions & 1 deletion lib/openapi_client/models/address_no_non_null_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ def self.openapi_nullable
:'street_address',
:'locality',
:'administrative_area',
:'country',
:'post_code'
])
end
Expand Down Expand Up @@ -127,12 +126,17 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
if @country.nil?
invalid_properties.push('invalid value for "country", country cannot be nil.')
end

invalid_properties
end

# Check to see if the all the properties in the model are valid
# @return true if the model is valid
def valid?
return false if @country.nil?
country_validator = EnumAttributeValidator.new('String', ["CA", "US", "MX", "AT", "AU", "BE", "CH", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GB", "IE", "IM", "IS", "IT", "LI", "LT", "LT", "LV", "LU", "NL", "NO", "PH", "PL", "RO", "SE", "SG", "SK", "CN", "ID", "IN", "JP", "KR", "MO", "MY", "SG", "HK", "TW"])
return false unless country_validator.valid?(@country)
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.56'
VERSION = '1.1.57'
end

0 comments on commit c306123

Please sign in to comment.