Skip to content

Commit c306123

Browse files
author
github-actions-bot
committed
fix: country not nullable
1 parent 465fc99 commit c306123

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
affixapi (1.1.56)
4+
affixapi (1.1.57)
55
typhoeus (~> 1.0, >= 1.0.1)
66

77
GEM

lib/openapi_client/models/address_no_non_null_request.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ def self.openapi_nullable
8282
:'street_address',
8383
:'locality',
8484
:'administrative_area',
85-
:'country',
8685
:'post_code'
8786
])
8887
end
@@ -127,12 +126,17 @@ def initialize(attributes = {})
127126
# @return Array for valid properties with the reasons
128127
def list_invalid_properties
129128
invalid_properties = Array.new
129+
if @country.nil?
130+
invalid_properties.push('invalid value for "country", country cannot be nil.')
131+
end
132+
130133
invalid_properties
131134
end
132135

133136
# Check to see if the all the properties in the model are valid
134137
# @return true if the model is valid
135138
def valid?
139+
return false if @country.nil?
136140
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"])
137141
return false unless country_validator.valid?(@country)
138142
true

lib/openapi_client/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
=end
1212

1313
module OpenapiClient
14-
VERSION = '1.1.56'
14+
VERSION = '1.1.57'
1515
end

0 commit comments

Comments
 (0)