Class: OpenAPI::Loader::Translator::CleanDefinitions

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/open_api/loader/translator/clean_definitions.rb

Overview

Cleans definitions that aren’t in use any more, because all references to them were expanded by [OpenAPI::Loader::Collector].

Constant Summary collapse

KEYS =

Keys to be dropped

%w[definitions parameters responses].freeze

Instance Method Summary collapse

Instance Method Details

#callObject



9
10
11
# File 'lib/open_api/loader/translator/clean_definitions.rb', line 9

def call
  KEYS.each { |key| delete(key) }
end