Module: OpenAPIParser::Expandable

Included in:
Schemas::Base
Defined in:
lib/openapi_parser/concerns/expandable.rb

Instance Method Summary collapse

Instance Method Details

#expand_reference(root, validate_references) ⇒ Object

expand refs

Parameters:

Returns:

  • nil



5
6
7
8
9
10
11
# File 'lib/openapi_parser/concerns/expandable.rb', line 5

def expand_reference(root, validate_references)
  expand_list_objects(root, self.class._openapi_attr_list_objects.keys, validate_references)
  expand_objects(root, self.class._openapi_attr_objects.keys, validate_references)
  expand_hash_objects(root, self.class._openapi_attr_hash_objects.keys, validate_references)
  expand_hash_objects(root, self.class._openapi_attr_hash_body_objects.keys, validate_references)
  nil
end