Sha256: 8398a13446ff48b5007f7b5918e8b5470c47a9c14ab53b0ceddd3e3e03c46945

Contents?: true

Size: 477 Bytes

Versions: 16

Compression:

Stored size: 477 Bytes

Contents

# frozen_string_literal: true

class << RSpec::OpenAPI::DefaultSchema = Object.new
  def build(title)
    spec = {
      openapi: '3.0.3',
      info: {
        title: title,
        version: RSpec::OpenAPI.application_version,
      },
      servers: RSpec::OpenAPI.servers,
      paths: {},
    }

    if RSpec::OpenAPI.security_schemes.present?
      spec[:components] = {
        securitySchemes: RSpec::OpenAPI.security_schemes,
      }
    end

    spec.freeze
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rspec-openapi-0.18.3 lib/rspec/openapi/default_schema.rb
rspec-openapi-0.18.2 lib/rspec/openapi/default_schema.rb
rspec-openapi-0.18.1 lib/rspec/openapi/default_schema.rb
rspec-openapi-0.18.0 lib/rspec/openapi/default_schema.rb
rspec-openapi-0.17.0 lib/rspec/openapi/default_schema.rb
rspec-openapi-0.16.1 lib/rspec/openapi/default_schema.rb
rspec-openapi-0.16.0 lib/rspec/openapi/default_schema.rb
rspec-openapi-0.15.0 lib/rspec/openapi/default_schema.rb
rspec-openapi-0.14.0 lib/rspec/openapi/default_schema.rb
rspec-openapi-0.13.0 lib/rspec/openapi/default_schema.rb
rspec-openapi-0.12.0 lib/rspec/openapi/default_schema.rb
rspec-openapi-0.11.0 lib/rspec/openapi/default_schema.rb
rspec-openapi-0.10.0 lib/rspec/openapi/default_schema.rb
rspec-openapi-0.9.0 lib/rspec/openapi/default_schema.rb
rspec-openapi-0.8.1 lib/rspec/openapi/default_schema.rb
rspec-openapi-0.8.0 lib/rspec/openapi/default_schema.rb