Sha256: a3da2cf07dc5559bd4cf94a5d5008ad691f2233c7257b44f9d3144d625b0aa6c

Contents?: true

Size: 315 Bytes

Versions: 13

Compression:

Stored size: 315 Bytes

Contents

class << RSpec::OpenAPI::DefaultSchema = Object.new
  def build(title)
    {
      openapi: '3.0.3',
      info: {
        title: title,
        version: RSpec::OpenAPI.application_version,
      },
      servers: RSpec::OpenAPI.server_urls.map { |url| { url: url } } || [],
      paths: {},
    }.freeze
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rspec-openapi-0.5.1 lib/rspec/openapi/default_schema.rb
rspec-openapi-0.5.0 lib/rspec/openapi/default_schema.rb
rspec-openapi-0.4.8 lib/rspec/openapi/default_schema.rb
rspec-openapi-0.4.7 lib/rspec/openapi/default_schema.rb
rspec-openapi-0.4.6 lib/rspec/openapi/default_schema.rb
rspec-openapi-0.4.5 lib/rspec/openapi/default_schema.rb
rspec-openapi-0.4.4 lib/rspec/openapi/default_schema.rb
rspec-openapi-0.4.3 lib/rspec/openapi/default_schema.rb
rspec-openapi-0.4.2 lib/rspec/openapi/default_schema.rb
rspec-openapi-0.4.1 lib/rspec/openapi/default_schema.rb
rspec-openapi-0.4.0 lib/rspec/openapi/default_schema.rb
rspec-openapi-0.3.20 lib/rspec/openapi/default_schema.rb
rspec-openapi-0.3.19 lib/rspec/openapi/default_schema.rb