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) ⇒ 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)
  expand_list_objects(root, self.class._openapi_attr_list_objects.keys)
  expand_objects(root, self.class._openapi_attr_objects.keys)
  expand_hash_objects(root, self.class._openapi_attr_hash_objects.keys)
  expand_hash_objects(root, self.class._openapi_attr_hash_body_objects.keys)
  nil
end