gbizinfo 0.2.0 → 0.2.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/CODE_OF_CONDUCT.md +12 -12
- data/Gemfile +2 -2
- data/Gemfile.lock +41 -41
- data/LICENSE.txt +1 -1
- data/README.md +8 -7
- data/docs/ApiErrorResponse.md +20 -0
- data/docs/HojinInfoResponse.md +1 -1
- data/docs/HojinInfoUpdateInfoResponse.md +1 -1
- data/gbizinfo.gemspec +6 -6
- data/git_push.sh +1 -1
- data/lib/gbizinfo/api/g_biz_inforestapi_api.rb +18 -18
- data/lib/gbizinfo/api/g_biz_inforestapi_period_specified_search_api.rb +9 -9
- data/lib/gbizinfo/api_client.rb +29 -24
- data/lib/gbizinfo/api_error.rb +1 -1
- data/lib/gbizinfo/api_model_base.rb +88 -0
- data/lib/gbizinfo/configuration.rb +14 -3
- data/lib/gbizinfo/models/{api_error.rb → api_error_response.rb} +12 -79
- data/lib/gbizinfo/models/certification_info.rb +11 -78
- data/lib/gbizinfo/models/commendation_info.rb +11 -78
- data/lib/gbizinfo/models/compatibility_of_childcare_and_work.rb +11 -78
- data/lib/gbizinfo/models/finance.rb +11 -78
- data/lib/gbizinfo/models/hojin_info.rb +11 -78
- data/lib/gbizinfo/models/hojin_info_response.rb +12 -79
- data/lib/gbizinfo/models/hojin_info_update_info_response.rb +12 -79
- data/lib/gbizinfo/models/major_shareholders.rb +11 -78
- data/lib/gbizinfo/models/management_index.rb +11 -78
- data/lib/gbizinfo/models/patent_info.rb +11 -78
- data/lib/gbizinfo/models/procurement_info.rb +11 -78
- data/lib/gbizinfo/models/subsidy_info.rb +11 -78
- data/lib/gbizinfo/models/women_activity_infos.rb +11 -78
- data/lib/gbizinfo/models/workplace_base_infos.rb +11 -78
- data/lib/gbizinfo/models/workplace_info_bean.rb +11 -78
- data/lib/gbizinfo/version.rb +2 -2
- data/lib/gbizinfo.rb +3 -2
- data/openapi/root.yaml +5 -5
- data/pkg/gbizinfo-0.2.2.gem +0 -0
- data/spec/models/api_error_response_spec.rb +42 -0
- data/spec/spec_helper.rb +1 -1
- metadata +14 -12
- data/pkg/gbizinfo-0.1.0.gem +0 -0
- data/pkg/gbizinfo-0.2.0.gem +0 -0
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
|
|
9
|
+
Generator version: 7.22.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Gbizinfo
|
|
17
|
-
class WomenActivityInfos
|
|
17
|
+
class WomenActivityInfos < ApiModelBase
|
|
18
18
|
# 女性管理職人数
|
|
19
19
|
attr_accessor :female_share_of_manager
|
|
20
20
|
|
|
@@ -45,9 +45,14 @@ module Gbizinfo
|
|
|
45
45
|
}
|
|
46
46
|
end
|
|
47
47
|
|
|
48
|
+
# Returns attribute mapping this model knows about
|
|
49
|
+
def self.acceptable_attribute_map
|
|
50
|
+
attribute_map
|
|
51
|
+
end
|
|
52
|
+
|
|
48
53
|
# Returns all the JSON keys this model knows about
|
|
49
54
|
def self.acceptable_attributes
|
|
50
|
-
|
|
55
|
+
acceptable_attribute_map.values
|
|
51
56
|
end
|
|
52
57
|
|
|
53
58
|
# Attribute type mapping.
|
|
@@ -76,9 +81,10 @@ module Gbizinfo
|
|
|
76
81
|
end
|
|
77
82
|
|
|
78
83
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
84
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
79
85
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
80
|
-
if (!
|
|
81
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Gbizinfo::WomenActivityInfos`. Please check the name to make sure it's valid. List of attributes: " +
|
|
86
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
87
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Gbizinfo::WomenActivityInfos`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
82
88
|
end
|
|
83
89
|
h[k.to_sym] = v
|
|
84
90
|
}
|
|
@@ -171,61 +177,6 @@ module Gbizinfo
|
|
|
171
177
|
new(transformed_hash)
|
|
172
178
|
end
|
|
173
179
|
|
|
174
|
-
# Deserializes the data based on type
|
|
175
|
-
# @param string type Data type
|
|
176
|
-
# @param string value Value to be deserialized
|
|
177
|
-
# @return [Object] Deserialized data
|
|
178
|
-
def self._deserialize(type, value)
|
|
179
|
-
case type.to_sym
|
|
180
|
-
when :Time
|
|
181
|
-
Time.parse(value)
|
|
182
|
-
when :Date
|
|
183
|
-
Date.parse(value)
|
|
184
|
-
when :String
|
|
185
|
-
value.to_s
|
|
186
|
-
when :Integer
|
|
187
|
-
value.to_i
|
|
188
|
-
when :Float
|
|
189
|
-
value.to_f
|
|
190
|
-
when :Boolean
|
|
191
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
192
|
-
true
|
|
193
|
-
else
|
|
194
|
-
false
|
|
195
|
-
end
|
|
196
|
-
when :Object
|
|
197
|
-
# generic object (usually a Hash), return directly
|
|
198
|
-
value
|
|
199
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
200
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
201
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
202
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
203
|
-
k_type = Regexp.last_match[:k_type]
|
|
204
|
-
v_type = Regexp.last_match[:v_type]
|
|
205
|
-
{}.tap do |hash|
|
|
206
|
-
value.each do |k, v|
|
|
207
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
208
|
-
end
|
|
209
|
-
end
|
|
210
|
-
else # model
|
|
211
|
-
# models (e.g. Pet) or oneOf
|
|
212
|
-
klass = Gbizinfo.const_get(type)
|
|
213
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
214
|
-
end
|
|
215
|
-
end
|
|
216
|
-
|
|
217
|
-
# Returns the string representation of the object
|
|
218
|
-
# @return [String] String presentation of the object
|
|
219
|
-
def to_s
|
|
220
|
-
to_hash.to_s
|
|
221
|
-
end
|
|
222
|
-
|
|
223
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
224
|
-
# @return [Hash] Returns the object in the form of hash
|
|
225
|
-
def to_body
|
|
226
|
-
to_hash
|
|
227
|
-
end
|
|
228
|
-
|
|
229
180
|
# Returns the object in the form of hash
|
|
230
181
|
# @return [Hash] Returns the object in the form of hash
|
|
231
182
|
def to_hash
|
|
@@ -242,24 +193,6 @@ module Gbizinfo
|
|
|
242
193
|
hash
|
|
243
194
|
end
|
|
244
195
|
|
|
245
|
-
# Outputs non-array value in the form of hash
|
|
246
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
247
|
-
# @param [Object] value Any valid value
|
|
248
|
-
# @return [Hash] Returns the value in the form of hash
|
|
249
|
-
def _to_hash(value)
|
|
250
|
-
if value.is_a?(Array)
|
|
251
|
-
value.compact.map { |v| _to_hash(v) }
|
|
252
|
-
elsif value.is_a?(Hash)
|
|
253
|
-
{}.tap do |hash|
|
|
254
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
255
|
-
end
|
|
256
|
-
elsif value.respond_to? :to_hash
|
|
257
|
-
value.to_hash
|
|
258
|
-
else
|
|
259
|
-
value
|
|
260
|
-
end
|
|
261
|
-
end
|
|
262
|
-
|
|
263
196
|
end
|
|
264
197
|
|
|
265
198
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
|
|
9
|
+
Generator version: 7.22.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Gbizinfo
|
|
17
|
-
class WorkplaceBaseInfos
|
|
17
|
+
class WorkplaceBaseInfos < ApiModelBase
|
|
18
18
|
# 従業員の平均年齢
|
|
19
19
|
attr_accessor :average_age
|
|
20
20
|
|
|
@@ -45,9 +45,14 @@ module Gbizinfo
|
|
|
45
45
|
}
|
|
46
46
|
end
|
|
47
47
|
|
|
48
|
+
# Returns attribute mapping this model knows about
|
|
49
|
+
def self.acceptable_attribute_map
|
|
50
|
+
attribute_map
|
|
51
|
+
end
|
|
52
|
+
|
|
48
53
|
# Returns all the JSON keys this model knows about
|
|
49
54
|
def self.acceptable_attributes
|
|
50
|
-
|
|
55
|
+
acceptable_attribute_map.values
|
|
51
56
|
end
|
|
52
57
|
|
|
53
58
|
# Attribute type mapping.
|
|
@@ -76,9 +81,10 @@ module Gbizinfo
|
|
|
76
81
|
end
|
|
77
82
|
|
|
78
83
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
84
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
79
85
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
80
|
-
if (!
|
|
81
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Gbizinfo::WorkplaceBaseInfos`. Please check the name to make sure it's valid. List of attributes: " +
|
|
86
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
87
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Gbizinfo::WorkplaceBaseInfos`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
82
88
|
end
|
|
83
89
|
h[k.to_sym] = v
|
|
84
90
|
}
|
|
@@ -171,61 +177,6 @@ module Gbizinfo
|
|
|
171
177
|
new(transformed_hash)
|
|
172
178
|
end
|
|
173
179
|
|
|
174
|
-
# Deserializes the data based on type
|
|
175
|
-
# @param string type Data type
|
|
176
|
-
# @param string value Value to be deserialized
|
|
177
|
-
# @return [Object] Deserialized data
|
|
178
|
-
def self._deserialize(type, value)
|
|
179
|
-
case type.to_sym
|
|
180
|
-
when :Time
|
|
181
|
-
Time.parse(value)
|
|
182
|
-
when :Date
|
|
183
|
-
Date.parse(value)
|
|
184
|
-
when :String
|
|
185
|
-
value.to_s
|
|
186
|
-
when :Integer
|
|
187
|
-
value.to_i
|
|
188
|
-
when :Float
|
|
189
|
-
value.to_f
|
|
190
|
-
when :Boolean
|
|
191
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
192
|
-
true
|
|
193
|
-
else
|
|
194
|
-
false
|
|
195
|
-
end
|
|
196
|
-
when :Object
|
|
197
|
-
# generic object (usually a Hash), return directly
|
|
198
|
-
value
|
|
199
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
200
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
201
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
202
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
203
|
-
k_type = Regexp.last_match[:k_type]
|
|
204
|
-
v_type = Regexp.last_match[:v_type]
|
|
205
|
-
{}.tap do |hash|
|
|
206
|
-
value.each do |k, v|
|
|
207
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
208
|
-
end
|
|
209
|
-
end
|
|
210
|
-
else # model
|
|
211
|
-
# models (e.g. Pet) or oneOf
|
|
212
|
-
klass = Gbizinfo.const_get(type)
|
|
213
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
214
|
-
end
|
|
215
|
-
end
|
|
216
|
-
|
|
217
|
-
# Returns the string representation of the object
|
|
218
|
-
# @return [String] String presentation of the object
|
|
219
|
-
def to_s
|
|
220
|
-
to_hash.to_s
|
|
221
|
-
end
|
|
222
|
-
|
|
223
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
224
|
-
# @return [Hash] Returns the object in the form of hash
|
|
225
|
-
def to_body
|
|
226
|
-
to_hash
|
|
227
|
-
end
|
|
228
|
-
|
|
229
180
|
# Returns the object in the form of hash
|
|
230
181
|
# @return [Hash] Returns the object in the form of hash
|
|
231
182
|
def to_hash
|
|
@@ -242,24 +193,6 @@ module Gbizinfo
|
|
|
242
193
|
hash
|
|
243
194
|
end
|
|
244
195
|
|
|
245
|
-
# Outputs non-array value in the form of hash
|
|
246
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
247
|
-
# @param [Object] value Any valid value
|
|
248
|
-
# @return [Hash] Returns the value in the form of hash
|
|
249
|
-
def _to_hash(value)
|
|
250
|
-
if value.is_a?(Array)
|
|
251
|
-
value.compact.map { |v| _to_hash(v) }
|
|
252
|
-
elsif value.is_a?(Hash)
|
|
253
|
-
{}.tap do |hash|
|
|
254
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
255
|
-
end
|
|
256
|
-
elsif value.respond_to? :to_hash
|
|
257
|
-
value.to_hash
|
|
258
|
-
else
|
|
259
|
-
value
|
|
260
|
-
end
|
|
261
|
-
end
|
|
262
|
-
|
|
263
196
|
end
|
|
264
197
|
|
|
265
198
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
|
|
9
|
+
Generator version: 7.22.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Gbizinfo
|
|
17
|
-
class WorkplaceInfoBean
|
|
17
|
+
class WorkplaceInfoBean < ApiModelBase
|
|
18
18
|
attr_accessor :base_infos
|
|
19
19
|
|
|
20
20
|
attr_accessor :compatibility_of_childcare_and_work
|
|
@@ -30,9 +30,14 @@ module Gbizinfo
|
|
|
30
30
|
}
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
+
# Returns attribute mapping this model knows about
|
|
34
|
+
def self.acceptable_attribute_map
|
|
35
|
+
attribute_map
|
|
36
|
+
end
|
|
37
|
+
|
|
33
38
|
# Returns all the JSON keys this model knows about
|
|
34
39
|
def self.acceptable_attributes
|
|
35
|
-
|
|
40
|
+
acceptable_attribute_map.values
|
|
36
41
|
end
|
|
37
42
|
|
|
38
43
|
# Attribute type mapping.
|
|
@@ -58,9 +63,10 @@ module Gbizinfo
|
|
|
58
63
|
end
|
|
59
64
|
|
|
60
65
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
66
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
61
67
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
62
|
-
if (!
|
|
63
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Gbizinfo::WorkplaceInfoBean`. Please check the name to make sure it's valid. List of attributes: " +
|
|
68
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Gbizinfo::WorkplaceInfoBean`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
64
70
|
end
|
|
65
71
|
h[k.to_sym] = v
|
|
66
72
|
}
|
|
@@ -138,61 +144,6 @@ module Gbizinfo
|
|
|
138
144
|
new(transformed_hash)
|
|
139
145
|
end
|
|
140
146
|
|
|
141
|
-
# Deserializes the data based on type
|
|
142
|
-
# @param string type Data type
|
|
143
|
-
# @param string value Value to be deserialized
|
|
144
|
-
# @return [Object] Deserialized data
|
|
145
|
-
def self._deserialize(type, value)
|
|
146
|
-
case type.to_sym
|
|
147
|
-
when :Time
|
|
148
|
-
Time.parse(value)
|
|
149
|
-
when :Date
|
|
150
|
-
Date.parse(value)
|
|
151
|
-
when :String
|
|
152
|
-
value.to_s
|
|
153
|
-
when :Integer
|
|
154
|
-
value.to_i
|
|
155
|
-
when :Float
|
|
156
|
-
value.to_f
|
|
157
|
-
when :Boolean
|
|
158
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
159
|
-
true
|
|
160
|
-
else
|
|
161
|
-
false
|
|
162
|
-
end
|
|
163
|
-
when :Object
|
|
164
|
-
# generic object (usually a Hash), return directly
|
|
165
|
-
value
|
|
166
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
167
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
168
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
169
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
170
|
-
k_type = Regexp.last_match[:k_type]
|
|
171
|
-
v_type = Regexp.last_match[:v_type]
|
|
172
|
-
{}.tap do |hash|
|
|
173
|
-
value.each do |k, v|
|
|
174
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
175
|
-
end
|
|
176
|
-
end
|
|
177
|
-
else # model
|
|
178
|
-
# models (e.g. Pet) or oneOf
|
|
179
|
-
klass = Gbizinfo.const_get(type)
|
|
180
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
181
|
-
end
|
|
182
|
-
end
|
|
183
|
-
|
|
184
|
-
# Returns the string representation of the object
|
|
185
|
-
# @return [String] String presentation of the object
|
|
186
|
-
def to_s
|
|
187
|
-
to_hash.to_s
|
|
188
|
-
end
|
|
189
|
-
|
|
190
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
191
|
-
# @return [Hash] Returns the object in the form of hash
|
|
192
|
-
def to_body
|
|
193
|
-
to_hash
|
|
194
|
-
end
|
|
195
|
-
|
|
196
147
|
# Returns the object in the form of hash
|
|
197
148
|
# @return [Hash] Returns the object in the form of hash
|
|
198
149
|
def to_hash
|
|
@@ -209,24 +160,6 @@ module Gbizinfo
|
|
|
209
160
|
hash
|
|
210
161
|
end
|
|
211
162
|
|
|
212
|
-
# Outputs non-array value in the form of hash
|
|
213
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
214
|
-
# @param [Object] value Any valid value
|
|
215
|
-
# @return [Hash] Returns the value in the form of hash
|
|
216
|
-
def _to_hash(value)
|
|
217
|
-
if value.is_a?(Array)
|
|
218
|
-
value.compact.map { |v| _to_hash(v) }
|
|
219
|
-
elsif value.is_a?(Hash)
|
|
220
|
-
{}.tap do |hash|
|
|
221
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
222
|
-
end
|
|
223
|
-
elsif value.respond_to? :to_hash
|
|
224
|
-
value.to_hash
|
|
225
|
-
else
|
|
226
|
-
value
|
|
227
|
-
end
|
|
228
|
-
end
|
|
229
|
-
|
|
230
163
|
end
|
|
231
164
|
|
|
232
165
|
end
|
data/lib/gbizinfo/version.rb
CHANGED
data/lib/gbizinfo.rb
CHANGED
|
@@ -6,18 +6,19 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
|
7
7
|
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
|
|
9
|
+
Generator version: 7.22.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
# Common files
|
|
14
14
|
require 'gbizinfo/api_client'
|
|
15
15
|
require 'gbizinfo/api_error'
|
|
16
|
+
require 'gbizinfo/api_model_base'
|
|
16
17
|
require 'gbizinfo/version'
|
|
17
18
|
require 'gbizinfo/configuration'
|
|
18
19
|
|
|
19
20
|
# Models
|
|
20
|
-
require 'gbizinfo/models/
|
|
21
|
+
require 'gbizinfo/models/api_error_response'
|
|
21
22
|
require 'gbizinfo/models/certification_info'
|
|
22
23
|
require 'gbizinfo/models/commendation_info'
|
|
23
24
|
require 'gbizinfo/models/compatibility_of_childcare_and_work'
|
data/openapi/root.yaml
CHANGED
|
@@ -1037,7 +1037,7 @@ components:
|
|
|
1037
1037
|
type: array
|
|
1038
1038
|
description: エラー情報(エラーがある場合に出力します。)
|
|
1039
1039
|
items:
|
|
1040
|
-
$ref: '#/components/schemas/
|
|
1040
|
+
$ref: '#/components/schemas/ApiErrorResponse'
|
|
1041
1041
|
hojin-infos:
|
|
1042
1042
|
type: array
|
|
1043
1043
|
description: gBizINFOデータ
|
|
@@ -1110,7 +1110,7 @@ components:
|
|
|
1110
1110
|
title:
|
|
1111
1111
|
type: string
|
|
1112
1112
|
description: 表彰名
|
|
1113
|
-
|
|
1113
|
+
StringMap:
|
|
1114
1114
|
type: object
|
|
1115
1115
|
additionalProperties:
|
|
1116
1116
|
type: string
|
|
@@ -1146,7 +1146,7 @@ components:
|
|
|
1146
1146
|
type: array
|
|
1147
1147
|
description: 分類
|
|
1148
1148
|
items:
|
|
1149
|
-
$ref: '#/components/schemas/
|
|
1149
|
+
$ref: '#/components/schemas/StringMap'
|
|
1150
1150
|
patent_type:
|
|
1151
1151
|
type: string
|
|
1152
1152
|
description: 特許/意匠/商標
|
|
@@ -1201,7 +1201,7 @@ components:
|
|
|
1201
1201
|
$ref: '#/components/schemas/CompatibilityOfChildcareAndWork'
|
|
1202
1202
|
women_activity_infos:
|
|
1203
1203
|
$ref: '#/components/schemas/WomenActivityInfos'
|
|
1204
|
-
|
|
1204
|
+
ApiErrorResponse:
|
|
1205
1205
|
type: object
|
|
1206
1206
|
properties:
|
|
1207
1207
|
item:
|
|
@@ -1333,7 +1333,7 @@ components:
|
|
|
1333
1333
|
type: array
|
|
1334
1334
|
description: エラー情報(エラーがある場合に出力します。)
|
|
1335
1335
|
items:
|
|
1336
|
-
$ref: '#/components/schemas/
|
|
1336
|
+
$ref: '#/components/schemas/ApiErrorResponse'
|
|
1337
1337
|
hojin-infos:
|
|
1338
1338
|
type: array
|
|
1339
1339
|
description: gBizINFOデータ
|
|
Binary file
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#gBizINFO REST API
|
|
3
|
+
|
|
4
|
+
#<div>各REST APIはHTTPリクエストヘッダX-hojinInfo-api-tokenに動作確認用のAPIトークンDTcLxzo1lZaUYaQPVdSRxdS4MzlXNCs4を指定して動作を確認することができます。</div><div>※動作確認用のAPIトークンはこのページでの動作確認でのみ使用してください。</div><div>※REST APIを利用する際は必ず、<a href='https://info.gbiz.go.jp/hojin/api_registration/form'>Web API利用申請</a>を行い、APIトークンを取得してください。</div>
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for Gbizinfo::ApiErrorResponse
|
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe Gbizinfo::ApiErrorResponse do
|
|
21
|
+
#let(:instance) { Gbizinfo::ApiErrorResponse.new }
|
|
22
|
+
|
|
23
|
+
describe 'test an instance of ApiErrorResponse' do
|
|
24
|
+
it 'should create an instance of ApiErrorResponse' do
|
|
25
|
+
# uncomment below to test the instance creation
|
|
26
|
+
#expect(instance).to be_instance_of(Gbizinfo::ApiErrorResponse)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test attribute "item"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
describe 'test attribute "message"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gbizinfo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
|
-
-
|
|
7
|
+
- nisyuu
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-05-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -50,10 +50,9 @@ dependencies:
|
|
|
50
50
|
- - ">="
|
|
51
51
|
- !ruby/object:Gem::Version
|
|
52
52
|
version: 3.6.0
|
|
53
|
-
description:
|
|
54
|
-
APIを利用する際は必ず、<a href='https://info.gbiz.go.jp/hojin/api_registration/form'>Web API利用申請</a>を行い、APIトークンを取得してください。</div>"
|
|
53
|
+
description: 経済産業省が提供するgBizInfoのRuby製クライアントAPI
|
|
55
54
|
email:
|
|
56
|
-
-
|
|
55
|
+
- 37263474+nisyuu@users.noreply.github.com
|
|
57
56
|
executables: []
|
|
58
57
|
extensions: []
|
|
59
58
|
extra_rdoc_files: []
|
|
@@ -68,6 +67,7 @@ files:
|
|
|
68
67
|
- bin/console
|
|
69
68
|
- bin/setup
|
|
70
69
|
- docs/ApiError.md
|
|
70
|
+
- docs/ApiErrorResponse.md
|
|
71
71
|
- docs/CertificationInfo.md
|
|
72
72
|
- docs/CommendationInfo.md
|
|
73
73
|
- docs/CompatibilityOfChildcareAndWork.md
|
|
@@ -92,8 +92,9 @@ files:
|
|
|
92
92
|
- lib/gbizinfo/api/g_biz_inforestapi_period_specified_search_api.rb
|
|
93
93
|
- lib/gbizinfo/api_client.rb
|
|
94
94
|
- lib/gbizinfo/api_error.rb
|
|
95
|
+
- lib/gbizinfo/api_model_base.rb
|
|
95
96
|
- lib/gbizinfo/configuration.rb
|
|
96
|
-
- lib/gbizinfo/models/
|
|
97
|
+
- lib/gbizinfo/models/api_error_response.rb
|
|
97
98
|
- lib/gbizinfo/models/certification_info.rb
|
|
98
99
|
- lib/gbizinfo/models/commendation_info.rb
|
|
99
100
|
- lib/gbizinfo/models/compatibility_of_childcare_and_work.rb
|
|
@@ -111,14 +112,14 @@ files:
|
|
|
111
112
|
- lib/gbizinfo/models/workplace_info_bean.rb
|
|
112
113
|
- lib/gbizinfo/version.rb
|
|
113
114
|
- openapi/root.yaml
|
|
114
|
-
- pkg/gbizinfo-0.
|
|
115
|
-
- pkg/gbizinfo-0.2.0.gem
|
|
115
|
+
- pkg/gbizinfo-0.2.2.gem
|
|
116
116
|
- sig/gbizinfo.rbs
|
|
117
117
|
- spec/api/g_biz_inforestapi_api_spec.rb
|
|
118
118
|
- spec/api/g_biz_inforestapi_period_specified_search_api_spec.rb
|
|
119
119
|
- spec/api_client_spec.rb
|
|
120
120
|
- spec/configuration_spec.rb
|
|
121
121
|
- spec/gbizinfo_spec.rb
|
|
122
|
+
- spec/models/api_error_response_spec.rb
|
|
122
123
|
- spec/models/api_error_spec.rb
|
|
123
124
|
- spec/models/certification_info_spec.rb
|
|
124
125
|
- spec/models/commendation_info_spec.rb
|
|
@@ -136,9 +137,9 @@ files:
|
|
|
136
137
|
- spec/models/workplace_base_infos_spec.rb
|
|
137
138
|
- spec/models/workplace_info_bean_spec.rb
|
|
138
139
|
- spec/spec_helper.rb
|
|
139
|
-
homepage: https://
|
|
140
|
+
homepage: https://github.com/nisyuu/gbizinfo
|
|
140
141
|
licenses:
|
|
141
|
-
-
|
|
142
|
+
- MIT
|
|
142
143
|
metadata: {}
|
|
143
144
|
post_install_message:
|
|
144
145
|
rdoc_options: []
|
|
@@ -155,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
155
156
|
- !ruby/object:Gem::Version
|
|
156
157
|
version: '0'
|
|
157
158
|
requirements: []
|
|
158
|
-
rubygems_version: 3.
|
|
159
|
+
rubygems_version: 3.5.22
|
|
159
160
|
signing_key:
|
|
160
161
|
specification_version: 4
|
|
161
162
|
summary: gBizINFO REST API Ruby Gem
|
|
@@ -173,6 +174,7 @@ test_files:
|
|
|
173
174
|
- spec/models/hojin_info_spec.rb
|
|
174
175
|
- spec/models/api_error_spec.rb
|
|
175
176
|
- spec/models/finance_spec.rb
|
|
177
|
+
- spec/models/api_error_response_spec.rb
|
|
176
178
|
- spec/models/commendation_info_spec.rb
|
|
177
179
|
- spec/models/women_activity_infos_spec.rb
|
|
178
180
|
- spec/models/subsidy_info_spec.rb
|
data/pkg/gbizinfo-0.1.0.gem
DELETED
|
Binary file
|
data/pkg/gbizinfo-0.2.0.gem
DELETED
|
Binary file
|