Sha256: 525bdb5c7eb2c4c8c8822bdd0bfbc28f1953fc4ea6195f7d9bfad74d6cec9e61

Contents?: true

Size: 1.24 KB

Versions: 2

Compression:

Stored size: 1.24 KB

Contents

# frozen_string_literal: true

require 'rspec/openapi/version'
require 'rspec/openapi/components_updater'
require 'rspec/openapi/default_schema'
require 'rspec/openapi/record_builder'
require 'rspec/openapi/result_recorder'
require 'rspec/openapi/schema_builder'
require 'rspec/openapi/schema_file'
require 'rspec/openapi/schema_merger'
require 'rspec/openapi/schema_cleaner'

if ENV['OPENAPI']
  require 'rspec/openapi/minitest_hooks'
  require 'rspec/openapi/rspec_hooks'
end

module RSpec::OpenAPI
  @path = 'doc/openapi.yaml'
  @comment = nil
  @enable_example = true
  @description_builder = ->(example) { example.description }
  @info = {}
  @application_version = '1.0.0'
  @request_headers = []
  @servers = []
  @security_schemes = []
  @example_types = %i[request]
  @response_headers = []
  @path_records = Hash.new { |h, k| h[k] = [] }

  class << self
    attr_accessor :path,
                  :comment,
                  :enable_example,
                  :description_builder,
                  :info,
                  :application_version,
                  :request_headers,
                  :servers,
                  :security_schemes,
                  :example_types,
                  :response_headers,
                  :path_records
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rspec-openapi-0.8.1 lib/rspec/openapi.rb
rspec-openapi-0.8.0 lib/rspec/openapi.rb