openapi_parser 0.14.1 → 0.15.0

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.
data/TAGS ADDED
@@ -0,0 +1,1352 @@
1
+
2
+ lib/openapi_parser.rb,545
3
+ module OpenAPIParserOpenAPIParser19,0
4
+ def parse(schema, config = {})parse23,0
5
+ def parse_with_filepath(schema, filepath, config = {})parse_with_filepath31,0
6
+ def load(filepath, config = {})load37,0
7
+ def load_uri(uri, config:, schema_registry:)load_uri43,0
8
+ def file_uri(filepath)file_uri58,0
9
+ def parse_file(content, extension)parse_file64,0
10
+ def parse_yaml(content)parse_yaml80,0
11
+ def parse_json(content)parse_json87,0
12
+ def load_hash(hash, config:, uri:, schema_registry:)load_hash91,0
13
+
14
+ lib/openapi_parser/schema_validator.rb,1254
15
+ class OpenAPIParser::SchemaValidatorSchemaValidator17,0
16
+ class OpenAPIParser::SchemaValidatorOpenAPIParser::SchemaValidator17,0
17
+ module ValidatableValidatable22,0
18
+ module ValidatableOpenAPIParser::SchemaValidator::Validatable22,0
19
+ def validate_schema(value, schema, **keyword_args)validate_schema23,0
20
+ def validate_integer(_value, _schema)validate_integer31,0
21
+ def validate(value, schema, options)validate44,0
22
+ def initialize(value, schema, options)initialize52,0
23
+ def validate_datavalidate_data61,0
24
+ def validate_schema(value, schema, **keyword_args)validate_schema71,0
25
+ def validate_integer(value, schema)validate_integer90,0
26
+ def validator(value, schema)validator97,0
27
+ def string_validatorstring_validator121,0
28
+ def integer_validatorinteger_validator125,0
29
+ def float_validatorfloat_validator129,0
30
+ def boolean_validatorboolean_validator133,0
31
+ def object_validatorobject_validator137,0
32
+ def array_validatorarray_validator141,0
33
+ def any_of_validatorany_of_validator145,0
34
+ def all_of_validatorall_of_validator149,0
35
+ def one_of_validatorone_of_validator153,0
36
+ def nil_validatornil_validator157,0
37
+ def unspecified_type_validatorunspecified_type_validator161,0
38
+
39
+ lib/openapi_parser/config.rb,683
40
+ class OpenAPIParser::ConfigConfig1,0
41
+ class OpenAPIParser::ConfigOpenAPIParser::Config1,0
42
+ def initialize(config)initialize2,0
43
+ def datetime_coerce_classdatetime_coerce_class6,0
44
+ def coerce_valuecoerce_value10,0
45
+ def expand_referenceexpand_reference14,0
46
+ def strict_response_validationstrict_response_validation18,0
47
+ def validate_headervalidate_header22,0
48
+ def request_validator_optionsrequest_validator_options27,0
49
+ alias_method :request_body_options, :request_validator_optionsrequest_body_options33,0
50
+ alias_method :path_params_options, :request_validator_optionspath_params_options34,0
51
+ def response_validate_optionsresponse_validate_options37,0
52
+
53
+ lib/openapi_parser/concerns/schema_loader/list_loader.rb,440
54
+ class OpenAPIParser::SchemaLoader::ListLoader < OpenAPIParser::SchemaLoader::CreatorListLoader2,0
55
+ class OpenAPIParser::SchemaLoader::ListLoader < OpenAPIParser::SchemaLoader::CreatorOpenAPIParser::SchemaLoader::ListLoader2,0
56
+ def load_data(target_object, raw_schema)load_data6,0
57
+ def create_attr_list_object(target_object, array_schema)create_attr_list_object12,0
58
+ alias_method :ref_name_base, :schema_keyref_name_base27,0
59
+
60
+ lib/openapi_parser/concerns/schema_loader/objects_loader.rb,372
61
+ class OpenAPIParser::SchemaLoader::ObjectsLoader < OpenAPIParser::SchemaLoader::CreatorObjectsLoader2,0
62
+ class OpenAPIParser::SchemaLoader::ObjectsLoader < OpenAPIParser::SchemaLoader::CreatorOpenAPIParser::SchemaLoader::ObjectsLoader2,0
63
+ def load_data(target_object, raw_schema)load_data6,0
64
+ def create_attr_object(target_object, schema)create_attr_object14,0
65
+
66
+ lib/openapi_parser/concerns/schema_loader/values_loader.rb,288
67
+ class OpenAPIParser::SchemaLoader::ValuesLoader < OpenAPIParser::SchemaLoader::BaseValuesLoader2,0
68
+ class OpenAPIParser::SchemaLoader::ValuesLoader < OpenAPIParser::SchemaLoader::BaseOpenAPIParser::SchemaLoader::ValuesLoader2,0
69
+ def load_data(target_object, raw_schema)load_data6,0
70
+
71
+ lib/openapi_parser/concerns/schema_loader/hash_body_loader.rb,495
72
+ class OpenAPIParser::SchemaLoader::HashBodyLoader < OpenAPIParser::SchemaLoader::CreatorHashBodyLoader2,0
73
+ class OpenAPIParser::SchemaLoader::HashBodyLoader < OpenAPIParser::SchemaLoader::CreatorOpenAPIParser::SchemaLoader::HashBodyLoader2,0
74
+ def initialize(variable_name, options)initialize5,0
75
+ def load_data(target_object, raw_schema)load_data14,0
76
+ def create_hash_body_objects(target_object, raw_schema)create_hash_body_objects22,0
77
+ attr_reader :reject_keysreject_keys36,0
78
+
79
+ lib/openapi_parser/concerns/schema_loader/base.rb,434
80
+ class OpenAPIParser::SchemaLoader::BaseBase2,0
81
+ class OpenAPIParser::SchemaLoader::BaseOpenAPIParser::SchemaLoader::Base2,0
82
+ def initialize(variable_name, options)initialize5,0
83
+ def load_data(_target_object, _raw_schema)load_data13,0
84
+ attr_reader :variable_name, :schema_keyvariable_name19,0
85
+ attr_reader :variable_name, :schema_keyschema_key19,0
86
+ def variable_set(target, variable_name, data)variable_set25,0
87
+
88
+ lib/openapi_parser/concerns/schema_loader/hash_objects_loader.rb,467
89
+ class OpenAPIParser::SchemaLoader::HashObjectsLoader < OpenAPIParser::SchemaLoader::CreatorHashObjectsLoader2,0
90
+ class OpenAPIParser::SchemaLoader::HashObjectsLoader < OpenAPIParser::SchemaLoader::CreatorOpenAPIParser::SchemaLoader::HashObjectsLoader2,0
91
+ def load_data(target_object, raw_schema)load_data6,0
92
+ def create_attr_hash_object(target_object, hash_schema)create_attr_hash_object12,0
93
+ alias_method :ref_name_base, :schema_keyref_name_base28,0
94
+
95
+ lib/openapi_parser/concerns/schema_loader/creator.rb,892
96
+ class OpenAPIParser::SchemaLoader::Creator < OpenAPIParser::SchemaLoader::BaseCreator2,0
97
+ class OpenAPIParser::SchemaLoader::Creator < OpenAPIParser::SchemaLoader::BaseOpenAPIParser::SchemaLoader::Creator2,0
98
+ def initialize(variable_name, options)initialize5,0
99
+ attr_reader :klass, :allow_reference, :allow_data_typeklass15,0
100
+ attr_reader :klass, :allow_reference, :allow_data_typeallow_reference15,0
101
+ attr_reader :klass, :allow_reference, :allow_data_typeallow_data_type15,0
102
+ def build_object_reference_from_base(base, names)build_object_reference_from_base17,0
103
+ def check_reference_schema?(check_schema)check_reference_schema?25,0
104
+ def check_object_schema?(check_schema)check_object_schema?29,0
105
+ def escape_reference(str)escape_reference33,0
106
+ def build_openapi_object_from_option(target_object, ref, schema)build_openapi_object_from_option37,0
107
+
108
+ lib/openapi_parser/concerns/parser.rb,2040
109
+ module OpenAPIParser::ParserParser1,0
110
+ module OpenAPIParser::ParserOpenAPIParser::Parser1,0
111
+ module OpenAPIParser::ParserParser9,0
112
+ module OpenAPIParser::ParserOpenAPIParser::Parser9,0
113
+ def self.included(base)included10,0
114
+ module ClassMethodsClassMethods13,0
115
+ module ClassMethodsOpenAPIParser::Parser::ClassMethods13,0
116
+ def_delegators :_parser_core, :_openapi_attr_values, :openapi_attr_value, :openapi_attr_values_openapi_attr_values16,0
117
+ def_delegators :_parser_core, :_openapi_attr_values, :openapi_attr_value, :openapi_attr_valuesopenapi_attr_value16,0
118
+ def_delegators :_parser_core, :_openapi_attr_values, :openapi_attr_value, :openapi_attr_valuesopenapi_attr_values16,0
119
+ def_delegators :_parser_core, :_openapi_attr_objects, :openapi_attr_objects, :openapi_attr_object_openapi_attr_objects17,0
120
+ def_delegators :_parser_core, :_openapi_attr_objects, :openapi_attr_objects, :openapi_attr_objectopenapi_attr_objects17,0
121
+ def_delegators :_parser_core, :_openapi_attr_objects, :openapi_attr_objects, :openapi_attr_objectopenapi_attr_object17,0
122
+ def_delegators :_parser_core, :_openapi_attr_list_objects, :openapi_attr_list_object_openapi_attr_list_objects18,0
123
+ def_delegators :_parser_core, :_openapi_attr_list_objects, :openapi_attr_list_objectopenapi_attr_list_object18,0
124
+ def_delegators :_parser_core, :_openapi_attr_hash_objects, :openapi_attr_hash_object_openapi_attr_hash_objects19,0
125
+ def_delegators :_parser_core, :_openapi_attr_hash_objects, :openapi_attr_hash_objectopenapi_attr_hash_object19,0
126
+ def_delegators :_parser_core, :_openapi_attr_hash_body_objects, :openapi_attr_hash_body_objects_openapi_attr_hash_body_objects20,0
127
+ def_delegators :_parser_core, :_openapi_attr_hash_body_objects, :openapi_attr_hash_body_objectsopenapi_attr_hash_body_objects20,0
128
+ def _parser_core_parser_core22,0
129
+ def _update_child_object(old, new)_update_child_object29,0
130
+ def _openapi_all_child_objects_openapi_all_child_objects34,0
131
+ def load_dataload_data40,0
132
+
133
+ lib/openapi_parser/concerns/parameter_validatable.rb,803
134
+ module OpenAPIParser::ParameterValidatableParameterValidatable1,0
135
+ module OpenAPIParser::ParameterValidatableOpenAPIParser::ParameterValidatable1,0
136
+ def validate_path_params(path_params, options)validate_path_params4,0
137
+ def validate_request_parameter(params, headers, options)validate_request_parameter11,0
138
+ def set_parent_path_item(path_item)set_parent_path_item17,0
139
+ def validate_query_parameter(params, object_reference, options)validate_query_parameter27,0
140
+ def validate_header_parameter(headers, object_reference, options)validate_header_parameter34,0
141
+ def header_parameter_hashheader_parameter_hash38,0
142
+ def path_parameter_hashpath_parameter_hash42,0
143
+ def query_parameter_hashquery_parameter_hash46,0
144
+ def divided_parameter_hashdivided_parameter_hash51,0
145
+
146
+ lib/openapi_parser/concerns/findable.rb,259
147
+ module OpenAPIParser::FindableFindable4,0
148
+ module OpenAPIParser::FindableOpenAPIParser::Findable4,0
149
+ def find_object(reference)find_object7,0
150
+ def purge_object_cachepurge_object_cache35,0
151
+ def find_remote_object(reference)find_remote_object48,0
152
+
153
+ lib/openapi_parser/concerns/expandable.rb,569
154
+ module OpenAPIParser::ExpandableExpandable1,0
155
+ module OpenAPIParser::ExpandableOpenAPIParser::Expandable1,0
156
+ def expand_reference(root)expand_reference5,0
157
+ def expand_hash_objects(root, attribute_names)expand_hash_objects15,0
158
+ def expand_hash_attribute(root, name)expand_hash_attribute21,0
159
+ def expand_objects(root, attribute_names)expand_objects36,0
160
+ def expand_list_objects(root, attribute_names)expand_list_objects51,0
161
+ def expand_object(root, object)expand_object68,0
162
+ def referenced_object(root, reference)referenced_object79,0
163
+
164
+ lib/openapi_parser/concerns/parser/value.rb,294
165
+ module OpenAPIParser::Parser::ValueValue1,0
166
+ module OpenAPIParser::Parser::ValueOpenAPIParser::Parser::Value1,0
167
+ def _openapi_attr_values_openapi_attr_values2,0
168
+ def openapi_attr_values(*names)openapi_attr_values6,0
169
+ def openapi_attr_value(name, options = {})openapi_attr_value10,0
170
+
171
+ lib/openapi_parser/concerns/parser/object.rb,318
172
+ module OpenAPIParser::Parser::ObjectObject1,0
173
+ module OpenAPIParser::Parser::ObjectOpenAPIParser::Parser::Object1,0
174
+ def _openapi_attr_objects_openapi_attr_objects2,0
175
+ def openapi_attr_objects(*names, klass)openapi_attr_objects6,0
176
+ def openapi_attr_object(name, klass, options = {})openapi_attr_object10,0
177
+
178
+ lib/openapi_parser/concerns/parser/hash.rb,262
179
+ module OpenAPIParser::Parser::HashHash1,0
180
+ module OpenAPIParser::Parser::HashOpenAPIParser::Parser::Hash1,0
181
+ def _openapi_attr_hash_objects_openapi_attr_hash_objects2,0
182
+ def openapi_attr_hash_object(name, klass, options = {})openapi_attr_hash_object6,0
183
+
184
+ lib/openapi_parser/concerns/parser/core.rb,204
185
+ class OpenAPIParser::Parser::CoreCore7,0
186
+ class OpenAPIParser::Parser::CoreOpenAPIParser::Parser::Core7,0
187
+ def initialize(target_klass)initialize14,0
188
+ attr_reader :target_klasstarget_klass20,0
189
+
190
+ lib/openapi_parser/concerns/parser/list.rb,262
191
+ module OpenAPIParser::Parser::ListList1,0
192
+ module OpenAPIParser::Parser::ListOpenAPIParser::Parser::List1,0
193
+ def _openapi_attr_list_objects_openapi_attr_list_objects2,0
194
+ def openapi_attr_list_object(name, klass, options = {})openapi_attr_list_object6,0
195
+
196
+ lib/openapi_parser/concerns/parser/hash_body.rb,300
197
+ module OpenAPIParser::Parser::HashBodyHashBody1,0
198
+ module OpenAPIParser::Parser::HashBodyOpenAPIParser::Parser::HashBody1,0
199
+ def _openapi_attr_hash_body_objects_openapi_attr_hash_body_objects2,0
200
+ def openapi_attr_hash_body_objects(name, klass, options = {})openapi_attr_hash_body_objects6,0
201
+
202
+ lib/openapi_parser/concerns/media_type_selectable.rb,244
203
+ module OpenAPIParser::MediaTypeSelectableMediaTypeSelectable1,0
204
+ module OpenAPIParser::MediaTypeSelectableOpenAPIParser::MediaTypeSelectable1,0
205
+ def select_media_type_from_content(content_type, content)select_media_type_from_content8,0
206
+
207
+ lib/openapi_parser/concerns/schema_loader.rb,632
208
+ class OpenAPIParser::SchemaLoaderSchemaLoader1,0
209
+ class OpenAPIParser::SchemaLoaderOpenAPIParser::SchemaLoader1,0
210
+ class OpenAPIParser::SchemaLoaderSchemaLoader13,0
211
+ class OpenAPIParser::SchemaLoaderOpenAPIParser::SchemaLoader13,0
212
+ def initialize(target_object, core)initialize16,0
213
+ attr_reader :childrenchildren24,0
214
+ def load_dataload_data29,0
215
+ attr_reader :core, :target_objectcore36,0
216
+ attr_reader :core, :target_objecttarget_object36,0
217
+ def load_data_by_schema_loader(schema_loader)load_data_by_schema_loader39,0
218
+ def register_child(object)register_child45,0
219
+ def all_loaderall_loader51,0
220
+
221
+ lib/openapi_parser/errors.rb,5558
222
+ module OpenAPIParserOpenAPIParser1,0
223
+ class OpenAPIError < StandardErrorOpenAPIError2,0
224
+ class OpenAPIError < StandardErrorOpenAPIParser::OpenAPIError2,0
225
+ def initialize(reference)initialize3,0
226
+ class ValidateError < OpenAPIErrorValidateError8,0
227
+ class ValidateError < OpenAPIErrorOpenAPIParser::ValidateError8,0
228
+ def initialize(data, type, reference)initialize9,0
229
+ def messagemessage15,0
230
+ def build_error_result(value, schema)build_error_result23,0
231
+ class NotNullError < OpenAPIErrorNotNullError29,0
232
+ class NotNullError < OpenAPIErrorOpenAPIParser::NotNullError29,0
233
+ def messagemessage30,0
234
+ class NotExistRequiredKey < OpenAPIErrorNotExistRequiredKey35,0
235
+ class NotExistRequiredKey < OpenAPIErrorOpenAPIParser::NotExistRequiredKey35,0
236
+ def initialize(keys, reference)initialize36,0
237
+ def messagemessage41,0
238
+ class NotExistPropertyDefinition < OpenAPIErrorNotExistPropertyDefinition46,0
239
+ class NotExistPropertyDefinition < OpenAPIErrorOpenAPIParser::NotExistPropertyDefinition46,0
240
+ def initialize(keys, reference)initialize47,0
241
+ def messagemessage52,0
242
+ class NotExistDiscriminatorMappedSchema < OpenAPIErrorNotExistDiscriminatorMappedSchema57,0
243
+ class NotExistDiscriminatorMappedSchema < OpenAPIErrorOpenAPIParser::NotExistDiscriminatorMappedSchema57,0
244
+ def initialize(mapped_schema_reference, reference)initialize58,0
245
+ def messagemessage63,0
246
+ class NotExistDiscriminatorPropertyName < OpenAPIErrorNotExistDiscriminatorPropertyName68,0
247
+ class NotExistDiscriminatorPropertyName < OpenAPIErrorOpenAPIParser::NotExistDiscriminatorPropertyName68,0
248
+ def initialize(key, value, reference)initialize69,0
249
+ def messagemessage75,0
250
+ class NotOneOf < OpenAPIErrorNotOneOf80,0
251
+ class NotOneOf < OpenAPIErrorOpenAPIParser::NotOneOf80,0
252
+ def initialize(value, reference)initialize81,0
253
+ def messagemessage86,0
254
+ class NotAnyOf < OpenAPIErrorNotAnyOf91,0
255
+ class NotAnyOf < OpenAPIErrorOpenAPIParser::NotAnyOf91,0
256
+ def initialize(value, reference)initialize92,0
257
+ def messagemessage97,0
258
+ class NotEnumInclude < OpenAPIErrorNotEnumInclude102,0
259
+ class NotEnumInclude < OpenAPIErrorOpenAPIParser::NotEnumInclude102,0
260
+ def initialize(value, reference)initialize103,0
261
+ def messagemessage108,0
262
+ class LessThanMinimum < OpenAPIErrorLessThanMinimum113,0
263
+ class LessThanMinimum < OpenAPIErrorOpenAPIParser::LessThanMinimum113,0
264
+ def initialize(value, reference)initialize114,0
265
+ def messagemessage119,0
266
+ class LessThanExclusiveMinimum < OpenAPIErrorLessThanExclusiveMinimum124,0
267
+ class LessThanExclusiveMinimum < OpenAPIErrorOpenAPIParser::LessThanExclusiveMinimum124,0
268
+ def initialize(value, reference)initialize125,0
269
+ def messagemessage130,0
270
+ class MoreThanMaximum < OpenAPIErrorMoreThanMaximum135,0
271
+ class MoreThanMaximum < OpenAPIErrorOpenAPIParser::MoreThanMaximum135,0
272
+ def initialize(value, reference)initialize136,0
273
+ def messagemessage141,0
274
+ class MoreThanExclusiveMaximum < OpenAPIErrorMoreThanExclusiveMaximum146,0
275
+ class MoreThanExclusiveMaximum < OpenAPIErrorOpenAPIParser::MoreThanExclusiveMaximum146,0
276
+ def initialize(value, reference)initialize147,0
277
+ def messagemessage152,0
278
+ class InvalidPattern < OpenAPIErrorInvalidPattern157,0
279
+ class InvalidPattern < OpenAPIErrorOpenAPIParser::InvalidPattern157,0
280
+ def initialize(value, pattern, reference, example)initialize158,0
281
+ def messagemessage165,0
282
+ class InvalidEmailFormat < OpenAPIErrorInvalidEmailFormat170,0
283
+ class InvalidEmailFormat < OpenAPIErrorOpenAPIParser::InvalidEmailFormat170,0
284
+ def initialize(value, reference)initialize171,0
285
+ def messagemessage176,0
286
+ class InvalidUUIDFormat < OpenAPIErrorInvalidUUIDFormat181,0
287
+ class InvalidUUIDFormat < OpenAPIErrorOpenAPIParser::InvalidUUIDFormat181,0
288
+ def initialize(value, reference)initialize182,0
289
+ def messagemessage187,0
290
+ class InvalidDateFormat < OpenAPIErrorInvalidDateFormat192,0
291
+ class InvalidDateFormat < OpenAPIErrorOpenAPIParser::InvalidDateFormat192,0
292
+ def initialize(value, reference)initialize193,0
293
+ def messagemessage198,0
294
+ class NotExistStatusCodeDefinition < OpenAPIErrorNotExistStatusCodeDefinition203,0
295
+ class NotExistStatusCodeDefinition < OpenAPIErrorOpenAPIParser::NotExistStatusCodeDefinition203,0
296
+ def messagemessage204,0
297
+ class NotExistContentTypeDefinition < OpenAPIErrorNotExistContentTypeDefinition209,0
298
+ class NotExistContentTypeDefinition < OpenAPIErrorOpenAPIParser::NotExistContentTypeDefinition209,0
299
+ def messagemessage210,0
300
+ class MoreThanMaxLength < OpenAPIErrorMoreThanMaxLength215,0
301
+ class MoreThanMaxLength < OpenAPIErrorOpenAPIParser::MoreThanMaxLength215,0
302
+ def initialize(value, reference)initialize216,0
303
+ def messagemessage221,0
304
+ class LessThanMinLength < OpenAPIErrorLessThanMinLength226,0
305
+ class LessThanMinLength < OpenAPIErrorOpenAPIParser::LessThanMinLength226,0
306
+ def initialize(value, reference)initialize227,0
307
+ def messagemessage232,0
308
+ class MoreThanMaxItems < OpenAPIErrorMoreThanMaxItems237,0
309
+ class MoreThanMaxItems < OpenAPIErrorOpenAPIParser::MoreThanMaxItems237,0
310
+ def initialize(value, reference)initialize238,0
311
+ def messagemessage243,0
312
+ class LessThanMinItems < OpenAPIErrorLessThanMinItems248,0
313
+ class LessThanMinItems < OpenAPIErrorOpenAPIParser::LessThanMinItems248,0
314
+ def initialize(value, reference)initialize249,0
315
+ def messagemessage254,0
316
+
317
+ lib/openapi_parser/reference_expander.rb,172
318
+ class OpenAPIParser::ReferenceExpanderReferenceExpander1,0
319
+ class OpenAPIParser::ReferenceExpanderOpenAPIParser::ReferenceExpander1,0
320
+ def expand(openapi)expand4,0
321
+
322
+ lib/openapi_parser/schema_validators/object_validator.rb,420
323
+ class OpenAPIParser::SchemaValidatorSchemaValidator1,0
324
+ class OpenAPIParser::SchemaValidatorOpenAPIParser::SchemaValidator1,0
325
+ class ObjectValidator < BaseObjectValidator2,0
326
+ class ObjectValidator < BaseOpenAPIParser::SchemaValidator::ObjectValidator2,0
327
+ def coerce_and_validate(value, schema, parent_all_of: false, parent_discriminator_schemas: [], discriminator_property_name: nil)coerce_and_validate7,0
328
+
329
+ lib/openapi_parser/schema_validators/string_validator.rb,916
330
+ class OpenAPIParser::SchemaValidatorSchemaValidator1,0
331
+ class OpenAPIParser::SchemaValidatorOpenAPIParser::SchemaValidator1,0
332
+ class StringValidator < BaseStringValidator2,0
333
+ class StringValidator < BaseOpenAPIParser::SchemaValidator::StringValidator2,0
334
+ def initialize(validator, coerce_value, datetime_coerce_class)initialize5,0
335
+ def coerce_and_validate(value, schema, **_keyword_args)coerce_and_validate10,0
336
+ def coerce_date_time(value, schema)coerce_date_time42,0
337
+ def parse_date_time(value, schema)parse_date_time48,0
338
+ def pattern_validate(value, schema)pattern_validate59,0
339
+ def validate_max_min_length(value, schema)validate_max_min_length67,0
340
+ def validate_email_format(value, schema)validate_email_format74,0
341
+ def validate_uuid_format(value, schema)validate_uuid_format85,0
342
+ def validate_date_format(value, schema)validate_date_format93,0
343
+
344
+ lib/openapi_parser/schema_validators/array_validator.rb,417
345
+ class OpenAPIParser::SchemaValidatorSchemaValidator1,0
346
+ class OpenAPIParser::SchemaValidatorOpenAPIParser::SchemaValidator1,0
347
+ class ArrayValidator < BaseArrayValidator2,0
348
+ class ArrayValidator < BaseOpenAPIParser::SchemaValidator::ArrayValidator2,0
349
+ def coerce_and_validate(value, schema, **_keyword_args)coerce_and_validate5,0
350
+ def validate_max_min_items(value, schema)validate_max_min_items25,0
351
+
352
+ lib/openapi_parser/schema_validators/enumable.rb,288
353
+ class OpenAPIParser::SchemaValidatorSchemaValidator1,0
354
+ class OpenAPIParser::SchemaValidatorOpenAPIParser::SchemaValidator1,0
355
+ module EnumableEnumable2,0
356
+ module EnumableOpenAPIParser::SchemaValidator::Enumable2,0
357
+ def check_enum_include(value, schema)check_enum_include6,0
358
+
359
+ lib/openapi_parser/schema_validators/minimum_maximum.rb,366
360
+ class OpenAPIParser::SchemaValidatorSchemaValidator1,0
361
+ class OpenAPIParser::SchemaValidatorOpenAPIParser::SchemaValidator1,0
362
+ module MinimumMaximumMinimumMaximum2,0
363
+ module MinimumMaximumOpenAPIParser::SchemaValidator::MinimumMaximum2,0
364
+ def check_minimum_maximum(value, schema)check_minimum_maximum6,0
365
+ def validate(value, schema)validate18,0
366
+
367
+ lib/openapi_parser/schema_validators/boolean_validator.rb,713
368
+ class OpenAPIParser::SchemaValidatorSchemaValidator1,0
369
+ class OpenAPIParser::SchemaValidatorOpenAPIParser::SchemaValidator1,0
370
+ class BooleanValidator < BaseBooleanValidator2,0
371
+ class BooleanValidator < BaseOpenAPIParser::SchemaValidator::BooleanValidator2,0
372
+ TRUE_VALUES = ['true', '1'].freezeTRUE_VALUES5,0
373
+ TRUE_VALUES = ['true', '1'].freezeOpenAPIParser::SchemaValidator::BooleanValidator::TRUE_VALUES5,0
374
+ FALSE_VALUES = ['false', '0'].freezeFALSE_VALUES6,0
375
+ FALSE_VALUES = ['false', '0'].freezeOpenAPIParser::SchemaValidator::BooleanValidator::FALSE_VALUES6,0
376
+ def coerce_and_validate(value, schema, **_keyword_args)coerce_and_validate8,0
377
+ def coerce(value)coerce21,0
378
+
379
+ lib/openapi_parser/schema_validators/options.rb,945
380
+ class OpenAPIParser::SchemaValidatorSchemaValidator1,0
381
+ class OpenAPIParser::SchemaValidatorOpenAPIParser::SchemaValidator1,0
382
+ class OptionsOptions2,0
383
+ class OptionsOpenAPIParser::SchemaValidator::Options2,0
384
+ attr_reader :coerce_value, :datetime_coerce_class, :validate_headercoerce_value9,0
385
+ attr_reader :coerce_value, :datetime_coerce_class, :validate_headerdatetime_coerce_class9,0
386
+ attr_reader :coerce_value, :datetime_coerce_class, :validate_headervalidate_header9,0
387
+ def initialize(coerce_value: nil, datetime_coerce_class: nil, validate_header: true)initialize11,0
388
+ class ResponseValidateOptionsResponseValidateOptions19,0
389
+ class ResponseValidateOptionsOpenAPIParser::SchemaValidator::ResponseValidateOptions19,0
390
+ attr_reader :strict, :validate_headerstrict22,0
391
+ attr_reader :strict, :validate_headervalidate_header22,0
392
+ def initialize(strict: false, validate_header: true)initialize24,0
393
+
394
+ lib/openapi_parser/schema_validators/unspecified_type_validator.rb,384
395
+ class OpenAPIParser::SchemaValidatorSchemaValidator1,0
396
+ class OpenAPIParser::SchemaValidatorOpenAPIParser::SchemaValidator1,0
397
+ class UnspecifiedTypeValidator < BaseUnspecifiedTypeValidator2,0
398
+ class UnspecifiedTypeValidator < BaseOpenAPIParser::SchemaValidator::UnspecifiedTypeValidator2,0
399
+ def coerce_and_validate(value, _schema, **_keyword_args)coerce_and_validate4,0
400
+
401
+ lib/openapi_parser/schema_validators/nil_validator.rb,335
402
+ class OpenAPIParser::SchemaValidatorSchemaValidator1,0
403
+ class OpenAPIParser::SchemaValidatorOpenAPIParser::SchemaValidator1,0
404
+ class NilValidator < BaseNilValidator2,0
405
+ class NilValidator < BaseOpenAPIParser::SchemaValidator::NilValidator2,0
406
+ def coerce_and_validate(value, schema, **_keyword_args)coerce_and_validate5,0
407
+
408
+ lib/openapi_parser/schema_validators/base.rb,527
409
+ class OpenAPIParser::SchemaValidatorSchemaValidator1,0
410
+ class OpenAPIParser::SchemaValidatorOpenAPIParser::SchemaValidator1,0
411
+ class BaseBase2,0
412
+ class BaseOpenAPIParser::SchemaValidator::Base2,0
413
+ def initialize(validatable, coerce_value)initialize4,0
414
+ attr_reader :validatablevalidatable9,0
415
+ def coerce_and_validate(_value, _schema, **_keyword_args)coerce_and_validate17,0
416
+ def validate_discriminator_schema(discriminator, value, parent_discriminator_schemas: [])validate_discriminator_schema21,0
417
+
418
+ lib/openapi_parser/schema_validators/one_of_validator.rb,343
419
+ class OpenAPIParser::SchemaValidatorSchemaValidator1,0
420
+ class OpenAPIParser::SchemaValidatorOpenAPIParser::SchemaValidator1,0
421
+ class OneOfValidator < BaseOneOfValidator2,0
422
+ class OneOfValidator < BaseOpenAPIParser::SchemaValidator::OneOfValidator2,0
423
+ def coerce_and_validate(value, schema, **_keyword_args)coerce_and_validate5,0
424
+
425
+ lib/openapi_parser/schema_validators/any_of_validator.rb,343
426
+ class OpenAPIParser::SchemaValidatorSchemaValidator1,0
427
+ class OpenAPIParser::SchemaValidatorOpenAPIParser::SchemaValidator1,0
428
+ class AnyOfValidator < BaseAnyOfValidator2,0
429
+ class AnyOfValidator < BaseOpenAPIParser::SchemaValidator::AnyOfValidator2,0
430
+ def coerce_and_validate(value, schema, **_keyword_args)coerce_and_validate5,0
431
+
432
+ lib/openapi_parser/schema_validators/float_validator.rb,467
433
+ class OpenAPIParser::SchemaValidatorSchemaValidator1,0
434
+ class OpenAPIParser::SchemaValidatorOpenAPIParser::SchemaValidator1,0
435
+ class FloatValidator < BaseFloatValidator2,0
436
+ class FloatValidator < BaseOpenAPIParser::SchemaValidator::FloatValidator2,0
437
+ def coerce_and_validate(value, schema, **_keyword_args)coerce_and_validate9,0
438
+ def coercer_and_validate_numeric(value, schema)coercer_and_validate_numeric19,0
439
+ def coerce(value)coerce28,0
440
+
441
+ lib/openapi_parser/schema_validators/integer_validator.rb,387
442
+ class OpenAPIParser::SchemaValidatorSchemaValidator1,0
443
+ class OpenAPIParser::SchemaValidatorOpenAPIParser::SchemaValidator1,0
444
+ class IntegerValidator < BaseIntegerValidator2,0
445
+ class IntegerValidator < BaseOpenAPIParser::SchemaValidator::IntegerValidator2,0
446
+ def coerce_and_validate(value, schema, **_keyword_args)coerce_and_validate9,0
447
+ def coerce(value)coerce22,0
448
+
449
+ lib/openapi_parser/schema_validators/all_of_validator.rb,342
450
+ class OpenAPIParser::SchemaValidatorSchemaValidator2,0
451
+ class OpenAPIParser::SchemaValidatorOpenAPIParser::SchemaValidator2,0
452
+ class AllOfValidator < BaseAllOfValidator3,0
453
+ class AllOfValidator < BaseOpenAPIParser::SchemaValidator::AllOfValidator3,0
454
+ def coerce_and_validate(value, schema, **keyword_args)coerce_and_validate7,0
455
+
456
+ lib/openapi_parser/parameter_validator.rb,313
457
+ class OpenAPIParser::ParameterValidatorParameterValidator1,0
458
+ class OpenAPIParser::ParameterValidatorOpenAPIParser::ParameterValidator1,0
459
+ def validate_parameter(parameters_hash, params, object_reference, options, is_header = false)validate_parameter8,0
460
+ def convert_key(k, is_header)convert_key29,0
461
+
462
+ lib/openapi_parser/path_item_finder.rb,1644
463
+ class OpenAPIParser::PathItemFinderPathItemFinder1,0
464
+ class OpenAPIParser::PathItemFinderOpenAPIParser::PathItemFinder1,0
465
+ def initialize(paths)initialize3,0
466
+ def operation_object(http_method, request_path)operation_object11,0
467
+ class ResultResult22,0
468
+ class ResultOpenAPIParser::PathItemFinder::Result22,0
469
+ attr_reader :path_item_object, :operation_object, :original_path, :path_paramspath_item_object23,0
470
+ attr_reader :path_item_object, :operation_object, :original_path, :path_paramsoperation_object23,0
471
+ attr_reader :path_item_object, :operation_object, :original_path, :path_paramsoriginal_path23,0
472
+ attr_reader :path_item_object, :operation_object, :original_path, :path_paramspath_params23,0
473
+ def initialize(path_item_object, operation_object, original_path, path_params)initialize33,0
474
+ def parse_path_parameters(schema_path, request_path)parse_path_parameters41,0
475
+ def path_parameters(schema_path)path_parameters66,0
476
+ def matches_directly?(request_path, http_method)matches_directly?77,0
477
+ def different_depth_or_method?(splitted_schema_path, splitted_request_path, path_item, http_method)different_depth_or_method?82,0
478
+ def path_template?(schema_path_item)path_template?88,0
479
+ def param_name(schema_path_item)param_name94,0
480
+ def extract_params(splitted_request_path, splitted_schema_path)extract_params103,0
481
+ def matching_paths_with_params(request_path, http_method)matching_paths_with_params124,0
482
+ def find_path_and_params(http_method, request_path)find_path_and_params141,0
483
+ def parse_request_path(http_method, request_path)parse_request_path151,0
484
+
485
+ lib/openapi_parser/version.rb,144
486
+ module OpenAPIParserOpenAPIParser1,0
487
+ VERSION = '1.0.0.beta1'.freezeVERSION2,0
488
+ VERSION = '1.0.0.beta1'.freezeOpenAPIParser::VERSION2,0
489
+
490
+ lib/openapi_parser/request_operation.rb,1800
491
+ class OpenAPIParser::RequestOperationRequestOperation3,0
492
+ class OpenAPIParser::RequestOperationOpenAPIParser::RequestOperation3,0
493
+ def create(http_method, request_path, path_item_finder, config)create8,0
494
+ attr_reader :operation_object, :path_params, :config, :http_method, :original_path, :path_itemoperation_object28,0
495
+ attr_reader :operation_object, :path_params, :config, :http_method, :original_path, :path_itempath_params28,0
496
+ attr_reader :operation_object, :path_params, :config, :http_method, :original_path, :path_itemconfig28,0
497
+ attr_reader :operation_object, :path_params, :config, :http_method, :original_path, :path_itemhttp_method28,0
498
+ attr_reader :operation_object, :path_params, :config, :http_method, :original_path, :path_itemoriginal_path28,0
499
+ attr_reader :operation_object, :path_params, :config, :http_method, :original_path, :path_itempath_item28,0
500
+ def initialize(http_method, result, config)initialize33,0
501
+ def validate_path_params(options = nil)validate_path_params42,0
502
+ def validate_request_body(content_type, params, options = nil)validate_request_body50,0
503
+ def validate_response_body(response_body, response_validate_options = nil)validate_response_body57,0
504
+ def validate_request_parameter(params, headers, options = nil)validate_request_parameter66,0
505
+ class ValidatableResponseBodyValidatableResponseBody71,0
506
+ class ValidatableResponseBodyOpenAPIParser::RequestOperation::ValidatableResponseBody71,0
507
+ attr_reader :status_code, :response_data, :headersstatus_code72,0
508
+ attr_reader :status_code, :response_data, :headersresponse_data72,0
509
+ attr_reader :status_code, :response_data, :headersheaders72,0
510
+ def initialize(status_code, response_data, headers)initialize74,0
511
+ def content_typecontent_type80,0
512
+
513
+ lib/openapi_parser/schemas/paths.rb,185
514
+ module OpenAPIParser::SchemasSchemas1,0
515
+ module OpenAPIParser::SchemasOpenAPIParser::Schemas1,0
516
+ class Paths < BasePaths2,0
517
+ class Paths < BaseOpenAPIParser::Schemas::Paths2,0
518
+
519
+ lib/openapi_parser/schemas/media_type.rb,269
520
+ module OpenAPIParser::SchemasSchemas5,0
521
+ module OpenAPIParser::SchemasOpenAPIParser::Schemas5,0
522
+ class MediaType < BaseMediaType6,0
523
+ class MediaType < BaseOpenAPIParser::Schemas::MediaType6,0
524
+ def validate_parameter(params, options)validate_parameter14,0
525
+
526
+ lib/openapi_parser/schemas/operation.rb,380
527
+ module OpenAPIParser::SchemasSchemas6,0
528
+ module OpenAPIParser::SchemasOpenAPIParser::Schemas6,0
529
+ class Operation < BaseOperation7,0
530
+ class Operation < BaseOpenAPIParser::Schemas::Operation7,0
531
+ def validate_request_body(content_type, params, options)validate_request_body24,0
532
+ def validate_response(response_body, response_validate_options)validate_response30,0
533
+
534
+ lib/openapi_parser/schemas/response.rb,398
535
+ module OpenAPIParser::SchemasSchemas3,0
536
+ module OpenAPIParser::SchemasOpenAPIParser::Schemas3,0
537
+ class Response < BaseResponse4,0
538
+ class Response < BaseOpenAPIParser::Schemas::Response4,0
539
+ def validate(response_body, response_validate_options)validate19,0
540
+ def select_media_type(content_type)select_media_type36,0
541
+ def validate_header(response_headers)validate_header43,0
542
+
543
+ lib/openapi_parser/schemas/discriminator.rb,217
544
+ module OpenAPIParser::SchemasSchemas1,0
545
+ module OpenAPIParser::SchemasOpenAPIParser::Schemas1,0
546
+ class Discriminator < BaseDiscriminator2,0
547
+ class Discriminator < BaseOpenAPIParser::Schemas::Discriminator2,0
548
+
549
+ lib/openapi_parser/schemas/path_item.rb,305
550
+ module OpenAPIParser::SchemasSchemas4,0
551
+ module OpenAPIParser::SchemasOpenAPIParser::Schemas4,0
552
+ class PathItem < BasePathItem5,0
553
+ class PathItem < BaseOpenAPIParser::Schemas::PathItem5,0
554
+ def operation(method)operation12,0
555
+ def set_path_item_to_operationset_path_item_to_operation18,0
556
+
557
+ lib/openapi_parser/schemas/openapi.rb,456
558
+ module OpenAPIParser::SchemasSchemas6,0
559
+ module OpenAPIParser::SchemasOpenAPIParser::Schemas6,0
560
+ class OpenAPI < BaseOpenAPI7,0
561
+ class OpenAPI < BaseOpenAPIParser::Schemas::OpenAPI7,0
562
+ def initialize(raw_schema, config, uri: nil, schema_registry: {})initialize8,0
563
+ def request_operation(http_method, request_path)request_operation33,0
564
+ def load_another_schema(uri)load_another_schema39,0
565
+ def resolve_uri(uri)resolve_uri51,0
566
+
567
+ lib/openapi_parser/schemas/responses.rb,422
568
+ module OpenAPIParser::SchemasSchemas3,0
569
+ module OpenAPIParser::SchemasOpenAPIParser::Schemas3,0
570
+ class Responses < BaseResponses4,0
571
+ class Responses < BaseOpenAPIParser::Schemas::Responses4,0
572
+ def validate(response_body, response_validate_options)validate18,0
573
+ def find_response_object(status_code)find_response_object35,0
574
+ def status_code_to_wild_card(status_code)status_code_to_wild_card51,0
575
+
576
+ lib/openapi_parser/schemas/header.rb,227
577
+ module OpenAPIParser::SchemasSchemas1,0
578
+ module OpenAPIParser::SchemasOpenAPIParser::Schemas1,0
579
+ class Header < BaseHeader2,0
580
+ class Header < BaseOpenAPIParser::Schemas::Header2,0
581
+ def validate(value)validate14,0
582
+
583
+ lib/openapi_parser/schemas/base.rb,618
584
+ module OpenAPIParser::SchemasSchemas1,0
585
+ module OpenAPIParser::SchemasOpenAPIParser::Schemas1,0
586
+ class BaseBase2,0
587
+ class BaseOpenAPIParser::Schemas::Base2,0
588
+ attr_reader :parent, :raw_schema, :object_reference, :rootparent7,0
589
+ attr_reader :parent, :raw_schema, :object_reference, :rootraw_schema7,0
590
+ attr_reader :parent, :raw_schema, :object_reference, :rootobject_reference7,0
591
+ attr_reader :parent, :raw_schema, :object_reference, :rootroot7,0
592
+ def initialize(object_reference, parent, root, raw_schema)initialize10,0
593
+ def after_initafter_init21,0
594
+ def inspectinspect24,0
595
+
596
+ lib/openapi_parser/schemas/schema.rb,247
597
+ module OpenAPIParser::SchemasSchemas5,0
598
+ module OpenAPIParser::SchemasOpenAPIParser::Schemas5,0
599
+ class Schema < BaseSchema6,0
600
+ class Schema < BaseOpenAPIParser::Schemas::Schema6,0
601
+ def additional_propertiesadditional_properties113,0
602
+
603
+ lib/openapi_parser/schemas/reference.rb,201
604
+ module OpenAPIParser::SchemasSchemas1,0
605
+ module OpenAPIParser::SchemasOpenAPIParser::Schemas1,0
606
+ class Reference < BaseReference2,0
607
+ class Reference < BaseOpenAPIParser::Schemas::Reference2,0
608
+
609
+ lib/openapi_parser/schemas/parameter.rb,263
610
+ module OpenAPIParser::SchemasSchemas3,0
611
+ module OpenAPIParser::SchemasOpenAPIParser::Schemas3,0
612
+ class Parameter < BaseParameter4,0
613
+ class Parameter < BaseOpenAPIParser::Schemas::Parameter4,0
614
+ def validate_params(params, options)validate_params16,0
615
+
616
+ lib/openapi_parser/schemas/classes.rb,1735
617
+ module OpenAPIParser::SchemasSchemas3,0
618
+ module OpenAPIParser::SchemasOpenAPIParser::Schemas3,0
619
+ class Base; endBase4,0
620
+ class Base; endOpenAPIParser::Schemas::Base4,0
621
+ class Discriminator < Base; endDiscriminator5,0
622
+ class Discriminator < Base; endOpenAPIParser::Schemas::Discriminator5,0
623
+ class OpenAPI < Base; endOpenAPI6,0
624
+ class OpenAPI < Base; endOpenAPIParser::Schemas::OpenAPI6,0
625
+ class Operation < Base; endOperation7,0
626
+ class Operation < Base; endOpenAPIParser::Schemas::Operation7,0
627
+ class Parameter < Base; endParameter8,0
628
+ class Parameter < Base; endOpenAPIParser::Schemas::Parameter8,0
629
+ class PathItem < Base; endPathItem9,0
630
+ class PathItem < Base; endOpenAPIParser::Schemas::PathItem9,0
631
+ class Paths < Base; endPaths10,0
632
+ class Paths < Base; endOpenAPIParser::Schemas::Paths10,0
633
+ class Reference < Base; endReference11,0
634
+ class Reference < Base; endOpenAPIParser::Schemas::Reference11,0
635
+ class RequestBody < Base; endRequestBody12,0
636
+ class RequestBody < Base; endOpenAPIParser::Schemas::RequestBody12,0
637
+ class Responses < Base; endResponses13,0
638
+ class Responses < Base; endOpenAPIParser::Schemas::Responses13,0
639
+ class Response < Base; endResponse14,0
640
+ class Response < Base; endOpenAPIParser::Schemas::Response14,0
641
+ class MediaType < Base; endMediaType15,0
642
+ class MediaType < Base; endOpenAPIParser::Schemas::MediaType15,0
643
+ class Schema < Base; endSchema16,0
644
+ class Schema < Base; endOpenAPIParser::Schemas::Schema16,0
645
+ class Components < Base; endComponents17,0
646
+ class Components < Base; endOpenAPIParser::Schemas::Components17,0
647
+ class Header < Base; endHeader18,0
648
+ class Header < Base; endOpenAPIParser::Schemas::Header18,0
649
+
650
+ lib/openapi_parser/schemas/request_body.rb,360
651
+ module OpenAPIParser::SchemasSchemas3,0
652
+ module OpenAPIParser::SchemasOpenAPIParser::Schemas3,0
653
+ class RequestBody < BaseRequestBody4,0
654
+ class RequestBody < BaseOpenAPIParser::Schemas::RequestBody4,0
655
+ def validate_request_body(content_type, params, options)validate_request_body20,0
656
+ def select_media_type(content_type)select_media_type30,0
657
+
658
+ lib/openapi_parser/schemas/components.rb,205
659
+ module OpenAPIParser::SchemasSchemas6,0
660
+ module OpenAPIParser::SchemasOpenAPIParser::Schemas6,0
661
+ class Components < BaseComponents7,0
662
+ class Components < BaseOpenAPIParser::Schemas::Components7,0
663
+
664
+ spec/spec_helper.rb,1786
665
+ def load_yaml_file(path)load_yaml_file27,0
666
+ def normal_schemanormal_schema31,0
667
+ def petstore_schemapetstore_schema35,0
668
+ def petstore_schema_pathpetstore_schema_path39,0
669
+ def petstore_with_discriminator_schemapetstore_with_discriminator_schema43,0
670
+ def petstore_with_mapped_polymorphism_schemapetstore_with_mapped_polymorphism_schema47,0
671
+ def petstore_with_polymorphism_schemapetstore_with_polymorphism_schema51,0
672
+ def json_petstore_schema_pathjson_petstore_schema_path55,0
673
+ def json_with_unsupported_extension_petstore_schema_pathjson_with_unsupported_extension_petstore_schema_path59,0
674
+ def yaml_with_unsupported_extension_petstore_schema_pathyaml_with_unsupported_extension_petstore_schema_path63,0
675
+ def path_item_ref_schemapath_item_ref_schema67,0
676
+ def build_validate_test_schema(new_properties)build_validate_test_schema71,0
677
+ def change_string_key(hash)change_string_key78,0
678
+ def load_yaml_file(path)load_yaml_file27,0
679
+ def normal_schemanormal_schema31,0
680
+ def petstore_schemapetstore_schema35,0
681
+ def petstore_schema_pathpetstore_schema_path39,0
682
+ def petstore_with_discriminator_schemapetstore_with_discriminator_schema43,0
683
+ def petstore_with_mapped_polymorphism_schemapetstore_with_mapped_polymorphism_schema47,0
684
+ def petstore_with_polymorphism_schemapetstore_with_polymorphism_schema51,0
685
+ def json_petstore_schema_pathjson_petstore_schema_path55,0
686
+ def json_with_unsupported_extension_petstore_schema_pathjson_with_unsupported_extension_petstore_schema_path59,0
687
+ def yaml_with_unsupported_extension_petstore_schema_pathyaml_with_unsupported_extension_petstore_schema_path63,0
688
+ def path_item_ref_schemapath_item_ref_schema67,0
689
+ def build_validate_test_schema(new_properties)build_validate_test_schema71,0
690
+ def change_string_key(hash)change_string_key78,0
691
+
692
+ lib/openapi_parser.rb,545
693
+ module OpenAPIParserOpenAPIParser19,0
694
+ def parse(schema, config = {})parse23,0
695
+ def parse_with_filepath(schema, filepath, config = {})parse_with_filepath31,0
696
+ def load(filepath, config = {})load37,0
697
+ def load_uri(uri, config:, schema_registry:)load_uri43,0
698
+ def file_uri(filepath)file_uri58,0
699
+ def parse_file(content, extension)parse_file64,0
700
+ def parse_yaml(content)parse_yaml80,0
701
+ def parse_json(content)parse_json87,0
702
+ def load_hash(hash, config:, uri:, schema_registry:)load_hash91,0
703
+
704
+ lib/openapi_parser/schema_validator.rb,1254
705
+ class OpenAPIParser::SchemaValidatorSchemaValidator17,0
706
+ class OpenAPIParser::SchemaValidatorOpenAPIParser::SchemaValidator17,0
707
+ module ValidatableValidatable22,0
708
+ module ValidatableOpenAPIParser::SchemaValidator::Validatable22,0
709
+ def validate_schema(value, schema, **keyword_args)validate_schema23,0
710
+ def validate_integer(_value, _schema)validate_integer31,0
711
+ def validate(value, schema, options)validate44,0
712
+ def initialize(value, schema, options)initialize52,0
713
+ def validate_datavalidate_data61,0
714
+ def validate_schema(value, schema, **keyword_args)validate_schema71,0
715
+ def validate_integer(value, schema)validate_integer90,0
716
+ def validator(value, schema)validator97,0
717
+ def string_validatorstring_validator121,0
718
+ def integer_validatorinteger_validator125,0
719
+ def float_validatorfloat_validator129,0
720
+ def boolean_validatorboolean_validator133,0
721
+ def object_validatorobject_validator137,0
722
+ def array_validatorarray_validator141,0
723
+ def any_of_validatorany_of_validator145,0
724
+ def all_of_validatorall_of_validator149,0
725
+ def one_of_validatorone_of_validator153,0
726
+ def nil_validatornil_validator157,0
727
+ def unspecified_type_validatorunspecified_type_validator161,0
728
+
729
+ lib/openapi_parser/config.rb,683
730
+ class OpenAPIParser::ConfigConfig1,0
731
+ class OpenAPIParser::ConfigOpenAPIParser::Config1,0
732
+ def initialize(config)initialize2,0
733
+ def datetime_coerce_classdatetime_coerce_class6,0
734
+ def coerce_valuecoerce_value10,0
735
+ def expand_referenceexpand_reference14,0
736
+ def strict_response_validationstrict_response_validation18,0
737
+ def validate_headervalidate_header22,0
738
+ def request_validator_optionsrequest_validator_options27,0
739
+ alias_method :request_body_options, :request_validator_optionsrequest_body_options33,0
740
+ alias_method :path_params_options, :request_validator_optionspath_params_options34,0
741
+ def response_validate_optionsresponse_validate_options37,0
742
+
743
+ lib/openapi_parser/concerns/schema_loader/list_loader.rb,440
744
+ class OpenAPIParser::SchemaLoader::ListLoader < OpenAPIParser::SchemaLoader::CreatorListLoader2,0
745
+ class OpenAPIParser::SchemaLoader::ListLoader < OpenAPIParser::SchemaLoader::CreatorOpenAPIParser::SchemaLoader::ListLoader2,0
746
+ def load_data(target_object, raw_schema)load_data6,0
747
+ def create_attr_list_object(target_object, array_schema)create_attr_list_object12,0
748
+ alias_method :ref_name_base, :schema_keyref_name_base27,0
749
+
750
+ lib/openapi_parser/concerns/schema_loader/objects_loader.rb,372
751
+ class OpenAPIParser::SchemaLoader::ObjectsLoader < OpenAPIParser::SchemaLoader::CreatorObjectsLoader2,0
752
+ class OpenAPIParser::SchemaLoader::ObjectsLoader < OpenAPIParser::SchemaLoader::CreatorOpenAPIParser::SchemaLoader::ObjectsLoader2,0
753
+ def load_data(target_object, raw_schema)load_data6,0
754
+ def create_attr_object(target_object, schema)create_attr_object14,0
755
+
756
+ lib/openapi_parser/concerns/schema_loader/values_loader.rb,288
757
+ class OpenAPIParser::SchemaLoader::ValuesLoader < OpenAPIParser::SchemaLoader::BaseValuesLoader2,0
758
+ class OpenAPIParser::SchemaLoader::ValuesLoader < OpenAPIParser::SchemaLoader::BaseOpenAPIParser::SchemaLoader::ValuesLoader2,0
759
+ def load_data(target_object, raw_schema)load_data6,0
760
+
761
+ lib/openapi_parser/concerns/schema_loader/hash_body_loader.rb,495
762
+ class OpenAPIParser::SchemaLoader::HashBodyLoader < OpenAPIParser::SchemaLoader::CreatorHashBodyLoader2,0
763
+ class OpenAPIParser::SchemaLoader::HashBodyLoader < OpenAPIParser::SchemaLoader::CreatorOpenAPIParser::SchemaLoader::HashBodyLoader2,0
764
+ def initialize(variable_name, options)initialize5,0
765
+ def load_data(target_object, raw_schema)load_data14,0
766
+ def create_hash_body_objects(target_object, raw_schema)create_hash_body_objects22,0
767
+ attr_reader :reject_keysreject_keys36,0
768
+
769
+ lib/openapi_parser/concerns/schema_loader/base.rb,434
770
+ class OpenAPIParser::SchemaLoader::BaseBase2,0
771
+ class OpenAPIParser::SchemaLoader::BaseOpenAPIParser::SchemaLoader::Base2,0
772
+ def initialize(variable_name, options)initialize5,0
773
+ def load_data(_target_object, _raw_schema)load_data13,0
774
+ attr_reader :variable_name, :schema_keyvariable_name19,0
775
+ attr_reader :variable_name, :schema_keyschema_key19,0
776
+ def variable_set(target, variable_name, data)variable_set25,0
777
+
778
+ lib/openapi_parser/concerns/schema_loader/hash_objects_loader.rb,467
779
+ class OpenAPIParser::SchemaLoader::HashObjectsLoader < OpenAPIParser::SchemaLoader::CreatorHashObjectsLoader2,0
780
+ class OpenAPIParser::SchemaLoader::HashObjectsLoader < OpenAPIParser::SchemaLoader::CreatorOpenAPIParser::SchemaLoader::HashObjectsLoader2,0
781
+ def load_data(target_object, raw_schema)load_data6,0
782
+ def create_attr_hash_object(target_object, hash_schema)create_attr_hash_object12,0
783
+ alias_method :ref_name_base, :schema_keyref_name_base28,0
784
+
785
+ lib/openapi_parser/concerns/schema_loader/creator.rb,892
786
+ class OpenAPIParser::SchemaLoader::Creator < OpenAPIParser::SchemaLoader::BaseCreator2,0
787
+ class OpenAPIParser::SchemaLoader::Creator < OpenAPIParser::SchemaLoader::BaseOpenAPIParser::SchemaLoader::Creator2,0
788
+ def initialize(variable_name, options)initialize5,0
789
+ attr_reader :klass, :allow_reference, :allow_data_typeklass15,0
790
+ attr_reader :klass, :allow_reference, :allow_data_typeallow_reference15,0
791
+ attr_reader :klass, :allow_reference, :allow_data_typeallow_data_type15,0
792
+ def build_object_reference_from_base(base, names)build_object_reference_from_base17,0
793
+ def check_reference_schema?(check_schema)check_reference_schema?25,0
794
+ def check_object_schema?(check_schema)check_object_schema?29,0
795
+ def escape_reference(str)escape_reference33,0
796
+ def build_openapi_object_from_option(target_object, ref, schema)build_openapi_object_from_option37,0
797
+
798
+ lib/openapi_parser/concerns/parser.rb,2040
799
+ module OpenAPIParser::ParserParser1,0
800
+ module OpenAPIParser::ParserOpenAPIParser::Parser1,0
801
+ module OpenAPIParser::ParserParser9,0
802
+ module OpenAPIParser::ParserOpenAPIParser::Parser9,0
803
+ def self.included(base)included10,0
804
+ module ClassMethodsClassMethods13,0
805
+ module ClassMethodsOpenAPIParser::Parser::ClassMethods13,0
806
+ def_delegators :_parser_core, :_openapi_attr_values, :openapi_attr_value, :openapi_attr_values_openapi_attr_values16,0
807
+ def_delegators :_parser_core, :_openapi_attr_values, :openapi_attr_value, :openapi_attr_valuesopenapi_attr_value16,0
808
+ def_delegators :_parser_core, :_openapi_attr_values, :openapi_attr_value, :openapi_attr_valuesopenapi_attr_values16,0
809
+ def_delegators :_parser_core, :_openapi_attr_objects, :openapi_attr_objects, :openapi_attr_object_openapi_attr_objects17,0
810
+ def_delegators :_parser_core, :_openapi_attr_objects, :openapi_attr_objects, :openapi_attr_objectopenapi_attr_objects17,0
811
+ def_delegators :_parser_core, :_openapi_attr_objects, :openapi_attr_objects, :openapi_attr_objectopenapi_attr_object17,0
812
+ def_delegators :_parser_core, :_openapi_attr_list_objects, :openapi_attr_list_object_openapi_attr_list_objects18,0
813
+ def_delegators :_parser_core, :_openapi_attr_list_objects, :openapi_attr_list_objectopenapi_attr_list_object18,0
814
+ def_delegators :_parser_core, :_openapi_attr_hash_objects, :openapi_attr_hash_object_openapi_attr_hash_objects19,0
815
+ def_delegators :_parser_core, :_openapi_attr_hash_objects, :openapi_attr_hash_objectopenapi_attr_hash_object19,0
816
+ def_delegators :_parser_core, :_openapi_attr_hash_body_objects, :openapi_attr_hash_body_objects_openapi_attr_hash_body_objects20,0
817
+ def_delegators :_parser_core, :_openapi_attr_hash_body_objects, :openapi_attr_hash_body_objectsopenapi_attr_hash_body_objects20,0
818
+ def _parser_core_parser_core22,0
819
+ def _update_child_object(old, new)_update_child_object29,0
820
+ def _openapi_all_child_objects_openapi_all_child_objects34,0
821
+ def load_dataload_data40,0
822
+
823
+ lib/openapi_parser/concerns/parameter_validatable.rb,803
824
+ module OpenAPIParser::ParameterValidatableParameterValidatable1,0
825
+ module OpenAPIParser::ParameterValidatableOpenAPIParser::ParameterValidatable1,0
826
+ def validate_path_params(path_params, options)validate_path_params4,0
827
+ def validate_request_parameter(params, headers, options)validate_request_parameter11,0
828
+ def set_parent_path_item(path_item)set_parent_path_item17,0
829
+ def validate_query_parameter(params, object_reference, options)validate_query_parameter27,0
830
+ def validate_header_parameter(headers, object_reference, options)validate_header_parameter34,0
831
+ def header_parameter_hashheader_parameter_hash38,0
832
+ def path_parameter_hashpath_parameter_hash42,0
833
+ def query_parameter_hashquery_parameter_hash46,0
834
+ def divided_parameter_hashdivided_parameter_hash51,0
835
+
836
+ lib/openapi_parser/concerns/findable.rb,259
837
+ module OpenAPIParser::FindableFindable4,0
838
+ module OpenAPIParser::FindableOpenAPIParser::Findable4,0
839
+ def find_object(reference)find_object7,0
840
+ def purge_object_cachepurge_object_cache35,0
841
+ def find_remote_object(reference)find_remote_object48,0
842
+
843
+ lib/openapi_parser/concerns/expandable.rb,569
844
+ module OpenAPIParser::ExpandableExpandable1,0
845
+ module OpenAPIParser::ExpandableOpenAPIParser::Expandable1,0
846
+ def expand_reference(root)expand_reference5,0
847
+ def expand_hash_objects(root, attribute_names)expand_hash_objects15,0
848
+ def expand_hash_attribute(root, name)expand_hash_attribute21,0
849
+ def expand_objects(root, attribute_names)expand_objects36,0
850
+ def expand_list_objects(root, attribute_names)expand_list_objects51,0
851
+ def expand_object(root, object)expand_object68,0
852
+ def referenced_object(root, reference)referenced_object79,0
853
+
854
+ lib/openapi_parser/concerns/parser/value.rb,294
855
+ module OpenAPIParser::Parser::ValueValue1,0
856
+ module OpenAPIParser::Parser::ValueOpenAPIParser::Parser::Value1,0
857
+ def _openapi_attr_values_openapi_attr_values2,0
858
+ def openapi_attr_values(*names)openapi_attr_values6,0
859
+ def openapi_attr_value(name, options = {})openapi_attr_value10,0
860
+
861
+ lib/openapi_parser/concerns/parser/object.rb,318
862
+ module OpenAPIParser::Parser::ObjectObject1,0
863
+ module OpenAPIParser::Parser::ObjectOpenAPIParser::Parser::Object1,0
864
+ def _openapi_attr_objects_openapi_attr_objects2,0
865
+ def openapi_attr_objects(*names, klass)openapi_attr_objects6,0
866
+ def openapi_attr_object(name, klass, options = {})openapi_attr_object10,0
867
+
868
+ lib/openapi_parser/concerns/parser/hash.rb,262
869
+ module OpenAPIParser::Parser::HashHash1,0
870
+ module OpenAPIParser::Parser::HashOpenAPIParser::Parser::Hash1,0
871
+ def _openapi_attr_hash_objects_openapi_attr_hash_objects2,0
872
+ def openapi_attr_hash_object(name, klass, options = {})openapi_attr_hash_object6,0
873
+
874
+ lib/openapi_parser/concerns/parser/core.rb,204
875
+ class OpenAPIParser::Parser::CoreCore7,0
876
+ class OpenAPIParser::Parser::CoreOpenAPIParser::Parser::Core7,0
877
+ def initialize(target_klass)initialize14,0
878
+ attr_reader :target_klasstarget_klass20,0
879
+
880
+ lib/openapi_parser/concerns/parser/list.rb,262
881
+ module OpenAPIParser::Parser::ListList1,0
882
+ module OpenAPIParser::Parser::ListOpenAPIParser::Parser::List1,0
883
+ def _openapi_attr_list_objects_openapi_attr_list_objects2,0
884
+ def openapi_attr_list_object(name, klass, options = {})openapi_attr_list_object6,0
885
+
886
+ lib/openapi_parser/concerns/parser/hash_body.rb,300
887
+ module OpenAPIParser::Parser::HashBodyHashBody1,0
888
+ module OpenAPIParser::Parser::HashBodyOpenAPIParser::Parser::HashBody1,0
889
+ def _openapi_attr_hash_body_objects_openapi_attr_hash_body_objects2,0
890
+ def openapi_attr_hash_body_objects(name, klass, options = {})openapi_attr_hash_body_objects6,0
891
+
892
+ lib/openapi_parser/concerns/media_type_selectable.rb,244
893
+ module OpenAPIParser::MediaTypeSelectableMediaTypeSelectable1,0
894
+ module OpenAPIParser::MediaTypeSelectableOpenAPIParser::MediaTypeSelectable1,0
895
+ def select_media_type_from_content(content_type, content)select_media_type_from_content8,0
896
+
897
+ lib/openapi_parser/concerns/schema_loader.rb,632
898
+ class OpenAPIParser::SchemaLoaderSchemaLoader1,0
899
+ class OpenAPIParser::SchemaLoaderOpenAPIParser::SchemaLoader1,0
900
+ class OpenAPIParser::SchemaLoaderSchemaLoader13,0
901
+ class OpenAPIParser::SchemaLoaderOpenAPIParser::SchemaLoader13,0
902
+ def initialize(target_object, core)initialize16,0
903
+ attr_reader :childrenchildren24,0
904
+ def load_dataload_data29,0
905
+ attr_reader :core, :target_objectcore36,0
906
+ attr_reader :core, :target_objecttarget_object36,0
907
+ def load_data_by_schema_loader(schema_loader)load_data_by_schema_loader39,0
908
+ def register_child(object)register_child45,0
909
+ def all_loaderall_loader51,0
910
+
911
+ lib/openapi_parser/errors.rb,5558
912
+ module OpenAPIParserOpenAPIParser1,0
913
+ class OpenAPIError < StandardErrorOpenAPIError2,0
914
+ class OpenAPIError < StandardErrorOpenAPIParser::OpenAPIError2,0
915
+ def initialize(reference)initialize3,0
916
+ class ValidateError < OpenAPIErrorValidateError8,0
917
+ class ValidateError < OpenAPIErrorOpenAPIParser::ValidateError8,0
918
+ def initialize(data, type, reference)initialize9,0
919
+ def messagemessage15,0
920
+ def build_error_result(value, schema)build_error_result23,0
921
+ class NotNullError < OpenAPIErrorNotNullError29,0
922
+ class NotNullError < OpenAPIErrorOpenAPIParser::NotNullError29,0
923
+ def messagemessage30,0
924
+ class NotExistRequiredKey < OpenAPIErrorNotExistRequiredKey35,0
925
+ class NotExistRequiredKey < OpenAPIErrorOpenAPIParser::NotExistRequiredKey35,0
926
+ def initialize(keys, reference)initialize36,0
927
+ def messagemessage41,0
928
+ class NotExistPropertyDefinition < OpenAPIErrorNotExistPropertyDefinition46,0
929
+ class NotExistPropertyDefinition < OpenAPIErrorOpenAPIParser::NotExistPropertyDefinition46,0
930
+ def initialize(keys, reference)initialize47,0
931
+ def messagemessage52,0
932
+ class NotExistDiscriminatorMappedSchema < OpenAPIErrorNotExistDiscriminatorMappedSchema57,0
933
+ class NotExistDiscriminatorMappedSchema < OpenAPIErrorOpenAPIParser::NotExistDiscriminatorMappedSchema57,0
934
+ def initialize(mapped_schema_reference, reference)initialize58,0
935
+ def messagemessage63,0
936
+ class NotExistDiscriminatorPropertyName < OpenAPIErrorNotExistDiscriminatorPropertyName68,0
937
+ class NotExistDiscriminatorPropertyName < OpenAPIErrorOpenAPIParser::NotExistDiscriminatorPropertyName68,0
938
+ def initialize(key, value, reference)initialize69,0
939
+ def messagemessage75,0
940
+ class NotOneOf < OpenAPIErrorNotOneOf80,0
941
+ class NotOneOf < OpenAPIErrorOpenAPIParser::NotOneOf80,0
942
+ def initialize(value, reference)initialize81,0
943
+ def messagemessage86,0
944
+ class NotAnyOf < OpenAPIErrorNotAnyOf91,0
945
+ class NotAnyOf < OpenAPIErrorOpenAPIParser::NotAnyOf91,0
946
+ def initialize(value, reference)initialize92,0
947
+ def messagemessage97,0
948
+ class NotEnumInclude < OpenAPIErrorNotEnumInclude102,0
949
+ class NotEnumInclude < OpenAPIErrorOpenAPIParser::NotEnumInclude102,0
950
+ def initialize(value, reference)initialize103,0
951
+ def messagemessage108,0
952
+ class LessThanMinimum < OpenAPIErrorLessThanMinimum113,0
953
+ class LessThanMinimum < OpenAPIErrorOpenAPIParser::LessThanMinimum113,0
954
+ def initialize(value, reference)initialize114,0
955
+ def messagemessage119,0
956
+ class LessThanExclusiveMinimum < OpenAPIErrorLessThanExclusiveMinimum124,0
957
+ class LessThanExclusiveMinimum < OpenAPIErrorOpenAPIParser::LessThanExclusiveMinimum124,0
958
+ def initialize(value, reference)initialize125,0
959
+ def messagemessage130,0
960
+ class MoreThanMaximum < OpenAPIErrorMoreThanMaximum135,0
961
+ class MoreThanMaximum < OpenAPIErrorOpenAPIParser::MoreThanMaximum135,0
962
+ def initialize(value, reference)initialize136,0
963
+ def messagemessage141,0
964
+ class MoreThanExclusiveMaximum < OpenAPIErrorMoreThanExclusiveMaximum146,0
965
+ class MoreThanExclusiveMaximum < OpenAPIErrorOpenAPIParser::MoreThanExclusiveMaximum146,0
966
+ def initialize(value, reference)initialize147,0
967
+ def messagemessage152,0
968
+ class InvalidPattern < OpenAPIErrorInvalidPattern157,0
969
+ class InvalidPattern < OpenAPIErrorOpenAPIParser::InvalidPattern157,0
970
+ def initialize(value, pattern, reference, example)initialize158,0
971
+ def messagemessage165,0
972
+ class InvalidEmailFormat < OpenAPIErrorInvalidEmailFormat170,0
973
+ class InvalidEmailFormat < OpenAPIErrorOpenAPIParser::InvalidEmailFormat170,0
974
+ def initialize(value, reference)initialize171,0
975
+ def messagemessage176,0
976
+ class InvalidUUIDFormat < OpenAPIErrorInvalidUUIDFormat181,0
977
+ class InvalidUUIDFormat < OpenAPIErrorOpenAPIParser::InvalidUUIDFormat181,0
978
+ def initialize(value, reference)initialize182,0
979
+ def messagemessage187,0
980
+ class InvalidDateFormat < OpenAPIErrorInvalidDateFormat192,0
981
+ class InvalidDateFormat < OpenAPIErrorOpenAPIParser::InvalidDateFormat192,0
982
+ def initialize(value, reference)initialize193,0
983
+ def messagemessage198,0
984
+ class NotExistStatusCodeDefinition < OpenAPIErrorNotExistStatusCodeDefinition203,0
985
+ class NotExistStatusCodeDefinition < OpenAPIErrorOpenAPIParser::NotExistStatusCodeDefinition203,0
986
+ def messagemessage204,0
987
+ class NotExistContentTypeDefinition < OpenAPIErrorNotExistContentTypeDefinition209,0
988
+ class NotExistContentTypeDefinition < OpenAPIErrorOpenAPIParser::NotExistContentTypeDefinition209,0
989
+ def messagemessage210,0
990
+ class MoreThanMaxLength < OpenAPIErrorMoreThanMaxLength215,0
991
+ class MoreThanMaxLength < OpenAPIErrorOpenAPIParser::MoreThanMaxLength215,0
992
+ def initialize(value, reference)initialize216,0
993
+ def messagemessage221,0
994
+ class LessThanMinLength < OpenAPIErrorLessThanMinLength226,0
995
+ class LessThanMinLength < OpenAPIErrorOpenAPIParser::LessThanMinLength226,0
996
+ def initialize(value, reference)initialize227,0
997
+ def messagemessage232,0
998
+ class MoreThanMaxItems < OpenAPIErrorMoreThanMaxItems237,0
999
+ class MoreThanMaxItems < OpenAPIErrorOpenAPIParser::MoreThanMaxItems237,0
1000
+ def initialize(value, reference)initialize238,0
1001
+ def messagemessage243,0
1002
+ class LessThanMinItems < OpenAPIErrorLessThanMinItems248,0
1003
+ class LessThanMinItems < OpenAPIErrorOpenAPIParser::LessThanMinItems248,0
1004
+ def initialize(value, reference)initialize249,0
1005
+ def messagemessage254,0
1006
+
1007
+ lib/openapi_parser/reference_expander.rb,172
1008
+ class OpenAPIParser::ReferenceExpanderReferenceExpander1,0
1009
+ class OpenAPIParser::ReferenceExpanderOpenAPIParser::ReferenceExpander1,0
1010
+ def expand(openapi)expand4,0
1011
+
1012
+ lib/openapi_parser/schema_validators/object_validator.rb,420
1013
+ class OpenAPIParser::SchemaValidatorSchemaValidator1,0
1014
+ class OpenAPIParser::SchemaValidatorOpenAPIParser::SchemaValidator1,0
1015
+ class ObjectValidator < BaseObjectValidator2,0
1016
+ class ObjectValidator < BaseOpenAPIParser::SchemaValidator::ObjectValidator2,0
1017
+ def coerce_and_validate(value, schema, parent_all_of: false, parent_discriminator_schemas: [], discriminator_property_name: nil)coerce_and_validate7,0
1018
+
1019
+ lib/openapi_parser/schema_validators/string_validator.rb,916
1020
+ class OpenAPIParser::SchemaValidatorSchemaValidator1,0
1021
+ class OpenAPIParser::SchemaValidatorOpenAPIParser::SchemaValidator1,0
1022
+ class StringValidator < BaseStringValidator2,0
1023
+ class StringValidator < BaseOpenAPIParser::SchemaValidator::StringValidator2,0
1024
+ def initialize(validator, coerce_value, datetime_coerce_class)initialize5,0
1025
+ def coerce_and_validate(value, schema, **_keyword_args)coerce_and_validate10,0
1026
+ def coerce_date_time(value, schema)coerce_date_time42,0
1027
+ def parse_date_time(value, schema)parse_date_time48,0
1028
+ def pattern_validate(value, schema)pattern_validate59,0
1029
+ def validate_max_min_length(value, schema)validate_max_min_length67,0
1030
+ def validate_email_format(value, schema)validate_email_format74,0
1031
+ def validate_uuid_format(value, schema)validate_uuid_format85,0
1032
+ def validate_date_format(value, schema)validate_date_format93,0
1033
+
1034
+ lib/openapi_parser/schema_validators/array_validator.rb,417
1035
+ class OpenAPIParser::SchemaValidatorSchemaValidator1,0
1036
+ class OpenAPIParser::SchemaValidatorOpenAPIParser::SchemaValidator1,0
1037
+ class ArrayValidator < BaseArrayValidator2,0
1038
+ class ArrayValidator < BaseOpenAPIParser::SchemaValidator::ArrayValidator2,0
1039
+ def coerce_and_validate(value, schema, **_keyword_args)coerce_and_validate5,0
1040
+ def validate_max_min_items(value, schema)validate_max_min_items25,0
1041
+
1042
+ lib/openapi_parser/schema_validators/enumable.rb,288
1043
+ class OpenAPIParser::SchemaValidatorSchemaValidator1,0
1044
+ class OpenAPIParser::SchemaValidatorOpenAPIParser::SchemaValidator1,0
1045
+ module EnumableEnumable2,0
1046
+ module EnumableOpenAPIParser::SchemaValidator::Enumable2,0
1047
+ def check_enum_include(value, schema)check_enum_include6,0
1048
+
1049
+ lib/openapi_parser/schema_validators/minimum_maximum.rb,366
1050
+ class OpenAPIParser::SchemaValidatorSchemaValidator1,0
1051
+ class OpenAPIParser::SchemaValidatorOpenAPIParser::SchemaValidator1,0
1052
+ module MinimumMaximumMinimumMaximum2,0
1053
+ module MinimumMaximumOpenAPIParser::SchemaValidator::MinimumMaximum2,0
1054
+ def check_minimum_maximum(value, schema)check_minimum_maximum6,0
1055
+ def validate(value, schema)validate18,0
1056
+
1057
+ lib/openapi_parser/schema_validators/boolean_validator.rb,713
1058
+ class OpenAPIParser::SchemaValidatorSchemaValidator1,0
1059
+ class OpenAPIParser::SchemaValidatorOpenAPIParser::SchemaValidator1,0
1060
+ class BooleanValidator < BaseBooleanValidator2,0
1061
+ class BooleanValidator < BaseOpenAPIParser::SchemaValidator::BooleanValidator2,0
1062
+ TRUE_VALUES = ['true', '1'].freezeTRUE_VALUES5,0
1063
+ TRUE_VALUES = ['true', '1'].freezeOpenAPIParser::SchemaValidator::BooleanValidator::TRUE_VALUES5,0
1064
+ FALSE_VALUES = ['false', '0'].freezeFALSE_VALUES6,0
1065
+ FALSE_VALUES = ['false', '0'].freezeOpenAPIParser::SchemaValidator::BooleanValidator::FALSE_VALUES6,0
1066
+ def coerce_and_validate(value, schema, **_keyword_args)coerce_and_validate8,0
1067
+ def coerce(value)coerce21,0
1068
+
1069
+ lib/openapi_parser/schema_validators/options.rb,945
1070
+ class OpenAPIParser::SchemaValidatorSchemaValidator1,0
1071
+ class OpenAPIParser::SchemaValidatorOpenAPIParser::SchemaValidator1,0
1072
+ class OptionsOptions2,0
1073
+ class OptionsOpenAPIParser::SchemaValidator::Options2,0
1074
+ attr_reader :coerce_value, :datetime_coerce_class, :validate_headercoerce_value9,0
1075
+ attr_reader :coerce_value, :datetime_coerce_class, :validate_headerdatetime_coerce_class9,0
1076
+ attr_reader :coerce_value, :datetime_coerce_class, :validate_headervalidate_header9,0
1077
+ def initialize(coerce_value: nil, datetime_coerce_class: nil, validate_header: true)initialize11,0
1078
+ class ResponseValidateOptionsResponseValidateOptions19,0
1079
+ class ResponseValidateOptionsOpenAPIParser::SchemaValidator::ResponseValidateOptions19,0
1080
+ attr_reader :strict, :validate_headerstrict22,0
1081
+ attr_reader :strict, :validate_headervalidate_header22,0
1082
+ def initialize(strict: false, validate_header: true)initialize24,0
1083
+
1084
+ lib/openapi_parser/schema_validators/unspecified_type_validator.rb,384
1085
+ class OpenAPIParser::SchemaValidatorSchemaValidator1,0
1086
+ class OpenAPIParser::SchemaValidatorOpenAPIParser::SchemaValidator1,0
1087
+ class UnspecifiedTypeValidator < BaseUnspecifiedTypeValidator2,0
1088
+ class UnspecifiedTypeValidator < BaseOpenAPIParser::SchemaValidator::UnspecifiedTypeValidator2,0
1089
+ def coerce_and_validate(value, _schema, **_keyword_args)coerce_and_validate4,0
1090
+
1091
+ lib/openapi_parser/schema_validators/nil_validator.rb,335
1092
+ class OpenAPIParser::SchemaValidatorSchemaValidator1,0
1093
+ class OpenAPIParser::SchemaValidatorOpenAPIParser::SchemaValidator1,0
1094
+ class NilValidator < BaseNilValidator2,0
1095
+ class NilValidator < BaseOpenAPIParser::SchemaValidator::NilValidator2,0
1096
+ def coerce_and_validate(value, schema, **_keyword_args)coerce_and_validate5,0
1097
+
1098
+ lib/openapi_parser/schema_validators/base.rb,527
1099
+ class OpenAPIParser::SchemaValidatorSchemaValidator1,0
1100
+ class OpenAPIParser::SchemaValidatorOpenAPIParser::SchemaValidator1,0
1101
+ class BaseBase2,0
1102
+ class BaseOpenAPIParser::SchemaValidator::Base2,0
1103
+ def initialize(validatable, coerce_value)initialize4,0
1104
+ attr_reader :validatablevalidatable9,0
1105
+ def coerce_and_validate(_value, _schema, **_keyword_args)coerce_and_validate17,0
1106
+ def validate_discriminator_schema(discriminator, value, parent_discriminator_schemas: [])validate_discriminator_schema21,0
1107
+
1108
+ lib/openapi_parser/schema_validators/one_of_validator.rb,343
1109
+ class OpenAPIParser::SchemaValidatorSchemaValidator1,0
1110
+ class OpenAPIParser::SchemaValidatorOpenAPIParser::SchemaValidator1,0
1111
+ class OneOfValidator < BaseOneOfValidator2,0
1112
+ class OneOfValidator < BaseOpenAPIParser::SchemaValidator::OneOfValidator2,0
1113
+ def coerce_and_validate(value, schema, **_keyword_args)coerce_and_validate5,0
1114
+
1115
+ lib/openapi_parser/schema_validators/any_of_validator.rb,343
1116
+ class OpenAPIParser::SchemaValidatorSchemaValidator1,0
1117
+ class OpenAPIParser::SchemaValidatorOpenAPIParser::SchemaValidator1,0
1118
+ class AnyOfValidator < BaseAnyOfValidator2,0
1119
+ class AnyOfValidator < BaseOpenAPIParser::SchemaValidator::AnyOfValidator2,0
1120
+ def coerce_and_validate(value, schema, **_keyword_args)coerce_and_validate5,0
1121
+
1122
+ lib/openapi_parser/schema_validators/float_validator.rb,467
1123
+ class OpenAPIParser::SchemaValidatorSchemaValidator1,0
1124
+ class OpenAPIParser::SchemaValidatorOpenAPIParser::SchemaValidator1,0
1125
+ class FloatValidator < BaseFloatValidator2,0
1126
+ class FloatValidator < BaseOpenAPIParser::SchemaValidator::FloatValidator2,0
1127
+ def coerce_and_validate(value, schema, **_keyword_args)coerce_and_validate9,0
1128
+ def coercer_and_validate_numeric(value, schema)coercer_and_validate_numeric19,0
1129
+ def coerce(value)coerce28,0
1130
+
1131
+ lib/openapi_parser/schema_validators/integer_validator.rb,387
1132
+ class OpenAPIParser::SchemaValidatorSchemaValidator1,0
1133
+ class OpenAPIParser::SchemaValidatorOpenAPIParser::SchemaValidator1,0
1134
+ class IntegerValidator < BaseIntegerValidator2,0
1135
+ class IntegerValidator < BaseOpenAPIParser::SchemaValidator::IntegerValidator2,0
1136
+ def coerce_and_validate(value, schema, **_keyword_args)coerce_and_validate9,0
1137
+ def coerce(value)coerce22,0
1138
+
1139
+ lib/openapi_parser/schema_validators/all_of_validator.rb,342
1140
+ class OpenAPIParser::SchemaValidatorSchemaValidator2,0
1141
+ class OpenAPIParser::SchemaValidatorOpenAPIParser::SchemaValidator2,0
1142
+ class AllOfValidator < BaseAllOfValidator3,0
1143
+ class AllOfValidator < BaseOpenAPIParser::SchemaValidator::AllOfValidator3,0
1144
+ def coerce_and_validate(value, schema, **keyword_args)coerce_and_validate7,0
1145
+
1146
+ lib/openapi_parser/parameter_validator.rb,313
1147
+ class OpenAPIParser::ParameterValidatorParameterValidator1,0
1148
+ class OpenAPIParser::ParameterValidatorOpenAPIParser::ParameterValidator1,0
1149
+ def validate_parameter(parameters_hash, params, object_reference, options, is_header = false)validate_parameter8,0
1150
+ def convert_key(k, is_header)convert_key29,0
1151
+
1152
+ lib/openapi_parser/path_item_finder.rb,1644
1153
+ class OpenAPIParser::PathItemFinderPathItemFinder1,0
1154
+ class OpenAPIParser::PathItemFinderOpenAPIParser::PathItemFinder1,0
1155
+ def initialize(paths)initialize3,0
1156
+ def operation_object(http_method, request_path)operation_object11,0
1157
+ class ResultResult22,0
1158
+ class ResultOpenAPIParser::PathItemFinder::Result22,0
1159
+ attr_reader :path_item_object, :operation_object, :original_path, :path_paramspath_item_object23,0
1160
+ attr_reader :path_item_object, :operation_object, :original_path, :path_paramsoperation_object23,0
1161
+ attr_reader :path_item_object, :operation_object, :original_path, :path_paramsoriginal_path23,0
1162
+ attr_reader :path_item_object, :operation_object, :original_path, :path_paramspath_params23,0
1163
+ def initialize(path_item_object, operation_object, original_path, path_params)initialize33,0
1164
+ def parse_path_parameters(schema_path, request_path)parse_path_parameters41,0
1165
+ def path_parameters(schema_path)path_parameters66,0
1166
+ def matches_directly?(request_path, http_method)matches_directly?77,0
1167
+ def different_depth_or_method?(splitted_schema_path, splitted_request_path, path_item, http_method)different_depth_or_method?82,0
1168
+ def path_template?(schema_path_item)path_template?88,0
1169
+ def param_name(schema_path_item)param_name94,0
1170
+ def extract_params(splitted_request_path, splitted_schema_path)extract_params103,0
1171
+ def matching_paths_with_params(request_path, http_method)matching_paths_with_params124,0
1172
+ def find_path_and_params(http_method, request_path)find_path_and_params141,0
1173
+ def parse_request_path(http_method, request_path)parse_request_path151,0
1174
+
1175
+ lib/openapi_parser/version.rb,144
1176
+ module OpenAPIParserOpenAPIParser1,0
1177
+ VERSION = '1.0.0.beta1'.freezeVERSION2,0
1178
+ VERSION = '1.0.0.beta1'.freezeOpenAPIParser::VERSION2,0
1179
+
1180
+ lib/openapi_parser/request_operation.rb,1800
1181
+ class OpenAPIParser::RequestOperationRequestOperation3,0
1182
+ class OpenAPIParser::RequestOperationOpenAPIParser::RequestOperation3,0
1183
+ def create(http_method, request_path, path_item_finder, config)create8,0
1184
+ attr_reader :operation_object, :path_params, :config, :http_method, :original_path, :path_itemoperation_object28,0
1185
+ attr_reader :operation_object, :path_params, :config, :http_method, :original_path, :path_itempath_params28,0
1186
+ attr_reader :operation_object, :path_params, :config, :http_method, :original_path, :path_itemconfig28,0
1187
+ attr_reader :operation_object, :path_params, :config, :http_method, :original_path, :path_itemhttp_method28,0
1188
+ attr_reader :operation_object, :path_params, :config, :http_method, :original_path, :path_itemoriginal_path28,0
1189
+ attr_reader :operation_object, :path_params, :config, :http_method, :original_path, :path_itempath_item28,0
1190
+ def initialize(http_method, result, config)initialize33,0
1191
+ def validate_path_params(options = nil)validate_path_params42,0
1192
+ def validate_request_body(content_type, params, options = nil)validate_request_body50,0
1193
+ def validate_response_body(response_body, response_validate_options = nil)validate_response_body57,0
1194
+ def validate_request_parameter(params, headers, options = nil)validate_request_parameter66,0
1195
+ class ValidatableResponseBodyValidatableResponseBody71,0
1196
+ class ValidatableResponseBodyOpenAPIParser::RequestOperation::ValidatableResponseBody71,0
1197
+ attr_reader :status_code, :response_data, :headersstatus_code72,0
1198
+ attr_reader :status_code, :response_data, :headersresponse_data72,0
1199
+ attr_reader :status_code, :response_data, :headersheaders72,0
1200
+ def initialize(status_code, response_data, headers)initialize74,0
1201
+ def content_typecontent_type80,0
1202
+
1203
+ lib/openapi_parser/schemas/paths.rb,185
1204
+ module OpenAPIParser::SchemasSchemas1,0
1205
+ module OpenAPIParser::SchemasOpenAPIParser::Schemas1,0
1206
+ class Paths < BasePaths2,0
1207
+ class Paths < BaseOpenAPIParser::Schemas::Paths2,0
1208
+
1209
+ lib/openapi_parser/schemas/media_type.rb,269
1210
+ module OpenAPIParser::SchemasSchemas5,0
1211
+ module OpenAPIParser::SchemasOpenAPIParser::Schemas5,0
1212
+ class MediaType < BaseMediaType6,0
1213
+ class MediaType < BaseOpenAPIParser::Schemas::MediaType6,0
1214
+ def validate_parameter(params, options)validate_parameter14,0
1215
+
1216
+ lib/openapi_parser/schemas/operation.rb,380
1217
+ module OpenAPIParser::SchemasSchemas6,0
1218
+ module OpenAPIParser::SchemasOpenAPIParser::Schemas6,0
1219
+ class Operation < BaseOperation7,0
1220
+ class Operation < BaseOpenAPIParser::Schemas::Operation7,0
1221
+ def validate_request_body(content_type, params, options)validate_request_body24,0
1222
+ def validate_response(response_body, response_validate_options)validate_response30,0
1223
+
1224
+ lib/openapi_parser/schemas/response.rb,398
1225
+ module OpenAPIParser::SchemasSchemas3,0
1226
+ module OpenAPIParser::SchemasOpenAPIParser::Schemas3,0
1227
+ class Response < BaseResponse4,0
1228
+ class Response < BaseOpenAPIParser::Schemas::Response4,0
1229
+ def validate(response_body, response_validate_options)validate19,0
1230
+ def select_media_type(content_type)select_media_type36,0
1231
+ def validate_header(response_headers)validate_header43,0
1232
+
1233
+ lib/openapi_parser/schemas/discriminator.rb,217
1234
+ module OpenAPIParser::SchemasSchemas1,0
1235
+ module OpenAPIParser::SchemasOpenAPIParser::Schemas1,0
1236
+ class Discriminator < BaseDiscriminator2,0
1237
+ class Discriminator < BaseOpenAPIParser::Schemas::Discriminator2,0
1238
+
1239
+ lib/openapi_parser/schemas/path_item.rb,305
1240
+ module OpenAPIParser::SchemasSchemas4,0
1241
+ module OpenAPIParser::SchemasOpenAPIParser::Schemas4,0
1242
+ class PathItem < BasePathItem5,0
1243
+ class PathItem < BaseOpenAPIParser::Schemas::PathItem5,0
1244
+ def operation(method)operation12,0
1245
+ def set_path_item_to_operationset_path_item_to_operation18,0
1246
+
1247
+ lib/openapi_parser/schemas/openapi.rb,456
1248
+ module OpenAPIParser::SchemasSchemas6,0
1249
+ module OpenAPIParser::SchemasOpenAPIParser::Schemas6,0
1250
+ class OpenAPI < BaseOpenAPI7,0
1251
+ class OpenAPI < BaseOpenAPIParser::Schemas::OpenAPI7,0
1252
+ def initialize(raw_schema, config, uri: nil, schema_registry: {})initialize8,0
1253
+ def request_operation(http_method, request_path)request_operation33,0
1254
+ def load_another_schema(uri)load_another_schema39,0
1255
+ def resolve_uri(uri)resolve_uri51,0
1256
+
1257
+ lib/openapi_parser/schemas/responses.rb,422
1258
+ module OpenAPIParser::SchemasSchemas3,0
1259
+ module OpenAPIParser::SchemasOpenAPIParser::Schemas3,0
1260
+ class Responses < BaseResponses4,0
1261
+ class Responses < BaseOpenAPIParser::Schemas::Responses4,0
1262
+ def validate(response_body, response_validate_options)validate18,0
1263
+ def find_response_object(status_code)find_response_object35,0
1264
+ def status_code_to_wild_card(status_code)status_code_to_wild_card51,0
1265
+
1266
+ lib/openapi_parser/schemas/header.rb,227
1267
+ module OpenAPIParser::SchemasSchemas1,0
1268
+ module OpenAPIParser::SchemasOpenAPIParser::Schemas1,0
1269
+ class Header < BaseHeader2,0
1270
+ class Header < BaseOpenAPIParser::Schemas::Header2,0
1271
+ def validate(value)validate14,0
1272
+
1273
+ lib/openapi_parser/schemas/base.rb,618
1274
+ module OpenAPIParser::SchemasSchemas1,0
1275
+ module OpenAPIParser::SchemasOpenAPIParser::Schemas1,0
1276
+ class BaseBase2,0
1277
+ class BaseOpenAPIParser::Schemas::Base2,0
1278
+ attr_reader :parent, :raw_schema, :object_reference, :rootparent7,0
1279
+ attr_reader :parent, :raw_schema, :object_reference, :rootraw_schema7,0
1280
+ attr_reader :parent, :raw_schema, :object_reference, :rootobject_reference7,0
1281
+ attr_reader :parent, :raw_schema, :object_reference, :rootroot7,0
1282
+ def initialize(object_reference, parent, root, raw_schema)initialize10,0
1283
+ def after_initafter_init21,0
1284
+ def inspectinspect24,0
1285
+
1286
+ lib/openapi_parser/schemas/schema.rb,247
1287
+ module OpenAPIParser::SchemasSchemas5,0
1288
+ module OpenAPIParser::SchemasOpenAPIParser::Schemas5,0
1289
+ class Schema < BaseSchema6,0
1290
+ class Schema < BaseOpenAPIParser::Schemas::Schema6,0
1291
+ def additional_propertiesadditional_properties113,0
1292
+
1293
+ lib/openapi_parser/schemas/reference.rb,201
1294
+ module OpenAPIParser::SchemasSchemas1,0
1295
+ module OpenAPIParser::SchemasOpenAPIParser::Schemas1,0
1296
+ class Reference < BaseReference2,0
1297
+ class Reference < BaseOpenAPIParser::Schemas::Reference2,0
1298
+
1299
+ lib/openapi_parser/schemas/parameter.rb,263
1300
+ module OpenAPIParser::SchemasSchemas3,0
1301
+ module OpenAPIParser::SchemasOpenAPIParser::Schemas3,0
1302
+ class Parameter < BaseParameter4,0
1303
+ class Parameter < BaseOpenAPIParser::Schemas::Parameter4,0
1304
+ def validate_params(params, options)validate_params16,0
1305
+
1306
+ lib/openapi_parser/schemas/classes.rb,1735
1307
+ module OpenAPIParser::SchemasSchemas3,0
1308
+ module OpenAPIParser::SchemasOpenAPIParser::Schemas3,0
1309
+ class Base; endBase4,0
1310
+ class Base; endOpenAPIParser::Schemas::Base4,0
1311
+ class Discriminator < Base; endDiscriminator5,0
1312
+ class Discriminator < Base; endOpenAPIParser::Schemas::Discriminator5,0
1313
+ class OpenAPI < Base; endOpenAPI6,0
1314
+ class OpenAPI < Base; endOpenAPIParser::Schemas::OpenAPI6,0
1315
+ class Operation < Base; endOperation7,0
1316
+ class Operation < Base; endOpenAPIParser::Schemas::Operation7,0
1317
+ class Parameter < Base; endParameter8,0
1318
+ class Parameter < Base; endOpenAPIParser::Schemas::Parameter8,0
1319
+ class PathItem < Base; endPathItem9,0
1320
+ class PathItem < Base; endOpenAPIParser::Schemas::PathItem9,0
1321
+ class Paths < Base; endPaths10,0
1322
+ class Paths < Base; endOpenAPIParser::Schemas::Paths10,0
1323
+ class Reference < Base; endReference11,0
1324
+ class Reference < Base; endOpenAPIParser::Schemas::Reference11,0
1325
+ class RequestBody < Base; endRequestBody12,0
1326
+ class RequestBody < Base; endOpenAPIParser::Schemas::RequestBody12,0
1327
+ class Responses < Base; endResponses13,0
1328
+ class Responses < Base; endOpenAPIParser::Schemas::Responses13,0
1329
+ class Response < Base; endResponse14,0
1330
+ class Response < Base; endOpenAPIParser::Schemas::Response14,0
1331
+ class MediaType < Base; endMediaType15,0
1332
+ class MediaType < Base; endOpenAPIParser::Schemas::MediaType15,0
1333
+ class Schema < Base; endSchema16,0
1334
+ class Schema < Base; endOpenAPIParser::Schemas::Schema16,0
1335
+ class Components < Base; endComponents17,0
1336
+ class Components < Base; endOpenAPIParser::Schemas::Components17,0
1337
+ class Header < Base; endHeader18,0
1338
+ class Header < Base; endOpenAPIParser::Schemas::Header18,0
1339
+
1340
+ lib/openapi_parser/schemas/request_body.rb,360
1341
+ module OpenAPIParser::SchemasSchemas3,0
1342
+ module OpenAPIParser::SchemasOpenAPIParser::Schemas3,0
1343
+ class RequestBody < BaseRequestBody4,0
1344
+ class RequestBody < BaseOpenAPIParser::Schemas::RequestBody4,0
1345
+ def validate_request_body(content_type, params, options)validate_request_body20,0
1346
+ def select_media_type(content_type)select_media_type30,0
1347
+
1348
+ lib/openapi_parser/schemas/components.rb,205
1349
+ module OpenAPIParser::SchemasSchemas6,0
1350
+ module OpenAPIParser::SchemasOpenAPIParser::Schemas6,0
1351
+ class Components < BaseComponents7,0
1352
+ class Components < BaseOpenAPIParser::Schemas::Components7,0