affixapi 1.1.49 → 1.1.50
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/openapi_client/models/address_response.rb +2 -2
- data/lib/openapi_client/version.rb +1 -1
- data/spec/models/address_response_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fade482d500e5e6fe07931149d0da04b554068e8597540c81fee20e76d8de8a0
|
4
|
+
data.tar.gz: b637f072c3a25dd7ae55c81729cfe3ae9e54e0ea1b6155b4cb6160859fc6945b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '069aae6fb032e0c6cb298f2b044404742ddad6338caa16e8d683ab88f70cbedd7b9a81fc31e4729eceee6c4198668891b92d257e672093a442703e63c1fe64ef'
|
7
|
+
data.tar.gz: 60e685644d656f14b1ad0ba2a4597cb7b3da855c25f702751932682b69464a031190983c45bb25c8b2d5f7cc2b916394bccd53c527e1f506fa6c68a1cb1602a1
|
data/Gemfile.lock
CHANGED
@@ -133,7 +133,7 @@ module OpenapiClient
|
|
133
133
|
# Check to see if the all the properties in the model are valid
|
134
134
|
# @return true if the model is valid
|
135
135
|
def valid?
|
136
|
-
country_validator = EnumAttributeValidator.new('String', ["null", "AT", "AU", "BE", "CA", "CH", "CZ", "DE", "DK", "EE", "ES", "FR", "GB", "IE", "IT", "JP", "LT", "LV", "NL", "NO", "PL", "RO", "SE", "SG", "SK", "US"])
|
136
|
+
country_validator = EnumAttributeValidator.new('String', ["null", "AT", "AU", "BE", "CA", "CH", "CN", "CZ", "DE", "DK", "EE", "ES", "FR", "GB", "HK", "IE", "IT", "JP", "LT", "LV", "NL", "NO", "PH", "PL", "RO", "SE", "SG", "SK", "TW", "US"])
|
137
137
|
return false unless country_validator.valid?(@country)
|
138
138
|
true
|
139
139
|
end
|
@@ -141,7 +141,7 @@ module OpenapiClient
|
|
141
141
|
# Custom attribute writer method checking allowed values (enum).
|
142
142
|
# @param [Object] country Object to be assigned
|
143
143
|
def country=(country)
|
144
|
-
validator = EnumAttributeValidator.new('String', ["null", "AT", "AU", "BE", "CA", "CH", "CZ", "DE", "DK", "EE", "ES", "FR", "GB", "IE", "IT", "JP", "LT", "LV", "NL", "NO", "PL", "RO", "SE", "SG", "SK", "US"])
|
144
|
+
validator = EnumAttributeValidator.new('String', ["null", "AT", "AU", "BE", "CA", "CH", "CN", "CZ", "DE", "DK", "EE", "ES", "FR", "GB", "HK", "IE", "IT", "JP", "LT", "LV", "NL", "NO", "PH", "PL", "RO", "SE", "SG", "SK", "TW", "US"])
|
145
145
|
unless validator.valid?(country)
|
146
146
|
fail ArgumentError, "invalid value for \"country\", must be one of #{validator.allowable_values}."
|
147
147
|
end
|
@@ -46,7 +46,7 @@ describe OpenapiClient::AddressResponse do
|
|
46
46
|
describe 'test attribute "country"' do
|
47
47
|
it 'should work' do
|
48
48
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["null", "AT", "AU", "BE", "CA", "CH", "CZ", "DE", "DK", "EE", "ES", "FR", "GB", "IE", "IT", "JP", "LT", "LV", "NL", "NO", "PL", "RO", "SE", "SG", "SK", "US"])
|
49
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["null", "AT", "AU", "BE", "CA", "CH", "CN", "CZ", "DE", "DK", "EE", "ES", "FR", "GB", "HK", "IE", "IT", "JP", "LT", "LV", "NL", "NO", "PH", "PL", "RO", "SE", "SG", "SK", "TW", "US"])
|
50
50
|
# validator.allowable_values.each do |value|
|
51
51
|
# expect { instance.country = value }.not_to raise_error
|
52
52
|
# end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: affixapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.50
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|