Sha256: e9c51c0abdd55c17ccebffe8243cd6d2e853c041e8e12024e84b8623a6797dc1
Contents?: true
Size: 386 Bytes
Versions: 1
Compression:
Stored size: 386 Bytes
Contents
class OpenAPI::Loader::Translator # # Cleans definitions that aren't in use any more, because all references # to them were expanded by [OpenAPI::Loader::Collector]. # # @private # class CleanDefinitions < SimpleDelegator def call KEYS.each { |key| delete(key) } end # Keys to be dropped KEYS = %w[definitions parameters responses].freeze end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
open_api-loader-0.0.1 | lib/open_api/loader/translator/clean_definitions.rb |