Sha256: aa2e721e2c212359543aee911a5d4d701a1c9d37111cb20665a89c70a1a04699

Contents?: true

Size: 466 Bytes

Versions: 12

Compression:

Stored size: 466 Bytes

Contents

# frozen_string_literal: true

require 'forwardable'
require 'r2-oas/schema/v3/cleaner'

module R2OAS
  module Schema
    class Cleaner
      extend Forwardable

      def_delegators :@cleaner, :clean_docs

      def initialize(options = {})
        case ::R2OAS.version
        when :v3
          @cleaner = V3::Cleaner.new(options)
        else
          raise NoImplementError, "Do not support version: #{::R2OAS.version}"
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
r2-oas-0.5.0 lib/r2-oas/schema/cleaner.rb
r2-oas-0.4.1 lib/r2-oas/schema/cleaner.rb
r2-oas-0.4.0 lib/r2-oas/schema/cleaner.rb
r2-oas-0.3.4 lib/r2-oas/schema/cleaner.rb
r2-oas-0.3.3 lib/r2-oas/schema/cleaner.rb
r2-oas-0.3.2 lib/r2-oas/schema/cleaner.rb
r2-oas-0.3.1 lib/r2-oas/schema/cleaner.rb
r2-oas-0.3.0 lib/r2-oas/schema/cleaner.rb
r2-oas-0.2.0 lib/r2-oas/schema/cleaner.rb
r2-oas-0.1.3 lib/r2-oas/schema/cleaner.rb
r2-oas-0.1.2 lib/r2-oas/schema/cleaner.rb
r2-oas-0.1.0 lib/r2-oas/schema/cleaner.rb