Sha256: c400add45ed1250ad01d02ccf5e2f03f6d7c2a5efd11593c291808edefefa433

Contents?: true

Size: 476 Bytes

Versions: 6

Compression:

Stored size: 476 Bytes

Contents

# frozen_string_literal: true

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

module R2OAS
  module Schema
    class Builder
      extend Forwardable

      def_delegators :@builder, :build_docs, :oas_doc

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
r2-oas-0.3.4 lib/r2-oas/schema/builder.rb
r2-oas-0.3.3 lib/r2-oas/schema/builder.rb
r2-oas-0.3.2 lib/r2-oas/schema/builder.rb
r2-oas-0.3.1 lib/r2-oas/schema/builder.rb
r2-oas-0.3.0 lib/r2-oas/schema/builder.rb
r2-oas-0.2.0 lib/r2-oas/schema/builder.rb