Sha256: def8c764e852eec5d88afe4e5f1bd7b10f61fc0432a962bd5c88f82952287a7b

Contents?: true

Size: 1.04 KB

Versions: 9

Compression:

Stored size: 1.04 KB

Contents

# frozen_string_literal: true

require 'r2-oas/plugins/schema/v3/object/hookable_base_object'

module R2OAS
  module Schema
    module V3
      class InfoObject < R2OAS::Plugins::Schema::V3::HookableBaseObject
        def create_doc
          result = {
            'title' => 'OAS API Document Title',
            'description' => "This is a sample server Petstore server.  You can find out more about
            Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net,
            #swagger](http://swagger.io/irc/).  For this sample, you can use the api key
            `special-key` to test the authorization filters.",
            'termsOfService' => 'http://swagger.io/terms/',
            # Contact Object
            'contact' => {
              'name' => '',
              'url' => ''
            },
            # License Object
            'license' => {
              'name' => '',
              'url' => ''
            },
            'version' => '1.0.0'
          }
          doc.merge!(result)
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
r2-oas-0.3.4 lib/r2-oas/schema/v3/object/info_object.rb
r2-oas-0.3.3 lib/r2-oas/schema/v3/object/info_object.rb
r2-oas-0.3.2 lib/r2-oas/schema/v3/object/info_object.rb
r2-oas-0.3.1 lib/r2-oas/schema/v3/object/info_object.rb
r2-oas-0.3.0 lib/r2-oas/schema/v3/object/info_object.rb
r2-oas-0.2.0 lib/r2-oas/schema/v3/object/info_object.rb
r2-oas-0.1.3 lib/r2-oas/schema/v3/object/info_object.rb
r2-oas-0.1.2 lib/r2-oas/schema/v3/object/info_object.rb
r2-oas-0.1.0 lib/r2-oas/schema/v3/object/info_object.rb