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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +16 -1
- data/cns_openapi_ruby_client-1.0.1.gem +0 -0
- data/lib/cns_openapi_ruby_client.rb +1 -1
- data/lib/cns_openapi_ruby_client/api/corporations_api.rb +1 -1
- data/lib/cns_openapi_ruby_client/api_error.rb +1 -1
- data/lib/cns_openapi_ruby_client/configuration.rb +1 -1
- data/lib/cns_openapi_ruby_client/models/corporate_type.rb +1 -1
- data/lib/cns_openapi_ruby_client/models/corporation.rb +1 -1
- data/lib/cns_openapi_ruby_client/models/correct_code_type.rb +1 -1
- data/lib/cns_openapi_ruby_client/models/process_code_type.rb +1 -1
- data/lib/cns_openapi_ruby_client/models/response.rb +3 -1
- data/lib/cns_openapi_ruby_client/models/response_wrapper.rb +1 -1
- data/lib/cns_openapi_ruby_client/version.rb +2 -2
- data/spec/api_client_spec.rb +4 -4
- data/spec/configuration_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21ce1f7ad8af6cf397803a33fec3331f8aa9e946ff4ee563f63435053438b2c3
|
4
|
+
data.tar.gz: 02e5ce21f8da32cef741b415ef29c48c1aafd1e59471565b118de8b5c53f61a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15d17471f3d8486149a0d8a8584da8e0083576bb275f5e9fb1d3691ba12e8e18549fd1f410075bd42e38be71ee8e42b25b7924d1d577b5a2af7d8cf2629c96b0
|
7
|
+
data.tar.gz: f97851c97a53960106d327ea26df9685f6fd19221e037f43911ad55cf09025e0fcf9dc4715ab61ab63ade13e9493ca8aeafa2fce9cc431f44d3beb6cd6958edd
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# cns_openapi_ruby_client
|
2
2
|
|
3
|
-
OpenApiGenerator generates
|
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.
|
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.
|
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.
|
14
|
+
VERSION = '1.0.2'
|
15
15
|
end
|
data/spec/api_client_spec.rb
CHANGED
@@ -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/
|
172
|
-
expect(api_client.select_header_content_type([])).to eq('application/
|
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/
|
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('
|
178
|
+
expect(api_client.select_header_content_type(['text/plain', 'application/xml'])).to eq('application/xml')
|
179
179
|
end
|
180
180
|
end
|
181
181
|
|
data/spec/configuration_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
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.
|
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-
|
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
|