cns_openapi_ruby_client 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2d25ef4e36fadea88437431c8de1c68572cd13e54cb36aaf9749f1152c53fa85
4
- data.tar.gz: b1fbf28ba337fb3c5ba90006450de6e3b9a72d05cd146c58d7534dc7061873a4
3
+ metadata.gz: 21ce1f7ad8af6cf397803a33fec3331f8aa9e946ff4ee563f63435053438b2c3
4
+ data.tar.gz: 02e5ce21f8da32cef741b415ef29c48c1aafd1e59471565b118de8b5c53f61a1
5
5
  SHA512:
6
- metadata.gz: 44aa8c7c5c817def7bd778d18eed7404cd2885f97cfd88a5926ed93430a30ce98effdee533d69f2d383d4fad8681d3c3712b14ac2dfbad95afb0bcd321d1bc0a
7
- data.tar.gz: 16918fb66007fae0685dc7c592c2325f36d15d916ea2bba04c12ec4204d4c73824892a1c4c20a8ab6197abbb6f99c815335c4449069c1281a0afc33c03d8fd18
6
+ metadata.gz: 15d17471f3d8486149a0d8a8584da8e0083576bb275f5e9fb1d3691ba12e8e18549fd1f410075bd42e38be71ee8e42b25b7924d1d577b5a2af7d8cf2629c96b0
7
+ data.tar.gz: f97851c97a53960106d327ea26df9685f6fd19221e037f43911ad55cf09025e0fcf9dc4715ab61ab63ade13e9493ca8aeafa2fce9cc431f44d3beb6cd6958edd
data/Gemfile.lock CHANGED
@@ -2,7 +2,7 @@ PATH
2
2
  remote: .
3
3
  specs:
4
4
  cns_openapi_ruby_client (1.0.0)
5
- activesupport (~> 4.2, >= 4.2.11)
5
+ activesupport (>= 4.2)
6
6
  typhoeus (~> 1.0, >= 1.0.1)
7
7
 
8
8
  GEM
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # cns_openapi_ruby_client
2
2
 
3
- OpenApiGenerator generates base code. Some code customized to parse xml.
3
+ Customized OpenApiGenerator generates code.
4
+ Some code customized to parse xml.
4
5
 
5
6
  CnsOpenapiRubyClient - the Ruby gem for the Corporate number system API v4
6
7
 
@@ -13,6 +14,20 @@ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-g
13
14
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
14
15
  For more information, please visit [https://www.houjin-bangou.nta.go.jp/webapi/toiawase/](https://www.houjin-bangou.nta.go.jp/webapi/toiawase/)
15
16
 
17
+ ## Customized
18
+
19
+ Below codes are not overwritten, even if you fix swagger definition and regenerate.
20
+ Because it's customized and described in .openapi-generator-ignore 
21
+
22
+ - lib/cns_openapi_ruby_client/api_client.rb
23
+ - To accept xml
24
+
25
+ - lib/cns_openapi_ruby_client/models/response.rb
26
+ - build_from_hash:184-188
27
+ - To put a hash in an array
28
+ - When API has only 1 candidate, return value is hash not array
29
+
30
+
16
31
  ## Installation
17
32
 
18
33
  ### Build a gem
Binary file
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Corporate number system API v4
5
5
 
6
- The version of the OpenAPI document: 1.0.1
6
+ The version of the OpenAPI document: 1.0.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Corporate number system API v4
5
5
 
6
- The version of the OpenAPI document: 1.0.1
6
+ The version of the OpenAPI document: 1.0.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Corporate number system API v4
5
5
 
6
- The version of the OpenAPI document: 1.0.1
6
+ The version of the OpenAPI document: 1.0.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Corporate number system API v4
5
5
 
6
- The version of the OpenAPI document: 1.0.1
6
+ The version of the OpenAPI document: 1.0.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Corporate number system API v4
5
5
 
6
- The version of the OpenAPI document: 1.0.1
6
+ The version of the OpenAPI document: 1.0.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Corporate number system API v4
5
5
 
6
- The version of the OpenAPI document: 1.0.1
6
+ The version of the OpenAPI document: 1.0.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Corporate number system API v4
5
5
 
6
- The version of the OpenAPI document: 1.0.1
6
+ The version of the OpenAPI document: 1.0.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Corporate number system API v4
5
5
 
6
- The version of the OpenAPI document: 1.0.1
6
+ The version of the OpenAPI document: 1.0.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Corporate number system API v4
5
5
 
6
- The version of the OpenAPI document: 1.0.1
6
+ The version of the OpenAPI document: 1.0.0
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.1
@@ -183,6 +183,8 @@ module CnsOpenapiRubyClient
183
183
  # is documented as an array but the input is not
184
184
  if attributes[self.class.attribute_map[key]].is_a?(Array)
185
185
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
186
+ elsif attributes[self.class.attribute_map[key]].is_a?(Hash)
187
+ self.send("#{key}=", [_deserialize($1, attributes[self.class.attribute_map[key]])])
186
188
  end
187
189
  elsif !attributes[self.class.attribute_map[key]].nil?
188
190
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Corporate number system API v4
5
5
 
6
- The version of the OpenAPI document: 1.0.1
6
+ The version of the OpenAPI document: 1.0.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Corporate number system API v4
5
5
 
6
- The version of the OpenAPI document: 1.0.1
6
+ The version of the OpenAPI document: 1.0.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.1
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.0.1
11
11
  =end
12
12
 
13
13
  module CnsOpenapiRubyClient
14
- VERSION = '1.0.1'
14
+ VERSION = '1.0.2'
15
15
  end
@@ -168,14 +168,14 @@ describe CnsOpenapiRubyClient::ApiClient do
168
168
  let(:api_client) { CnsOpenapiRubyClient::ApiClient.new }
169
169
 
170
170
  it 'works' do
171
- expect(api_client.select_header_content_type(nil)).to eq('application/json')
172
- expect(api_client.select_header_content_type([])).to eq('application/json')
171
+ expect(api_client.select_header_content_type(nil)).to eq('application/xml')
172
+ expect(api_client.select_header_content_type([])).to eq('application/xml')
173
173
 
174
174
  expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
175
- expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
175
+ expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/xml')
176
176
  expect(api_client.select_header_content_type(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
177
177
  expect(api_client.select_header_content_type(['application/xml'])).to eq('application/xml')
178
- expect(api_client.select_header_content_type(['text/plain', 'application/xml'])).to eq('text/plain')
178
+ expect(api_client.select_header_content_type(['text/plain', 'application/xml'])).to eq('application/xml')
179
179
  end
180
180
  end
181
181
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Corporate number system API v4
5
5
 
6
- The version of the OpenAPI document: 1.0.1
6
+ The version of the OpenAPI document: 1.0.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.1
data/spec/spec_helper.rb CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Corporate number system API v4
5
5
 
6
- The version of the OpenAPI document: 1.0.1
6
+ The version of the OpenAPI document: 1.0.2
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.1
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cns_openapi_ruby_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-24 00:00:00.000000000 Z
11
+ date: 2021-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -76,6 +76,7 @@ files:
76
76
  - README.md
77
77
  - Rakefile
78
78
  - cns_openapi_ruby_client-1.0.0.gem
79
+ - cns_openapi_ruby_client-1.0.1.gem
79
80
  - cns_openapi_ruby_client.gemspec
80
81
  - docs/CorporateType.md
81
82
  - docs/Corporation.md