lib/oas_rails/configuration.rb in oas_rails-0.1.0 vs lib/oas_rails/configuration.rb in oas_rails-0.1.1
- old
+ new
@@ -1,17 +1,18 @@
module OasRails
class Configuration
- attr_accessor :info, :default_tags_from, :request_body_automatically, :autodiscover_responses
+ attr_accessor :info, :default_tags_from, :autodiscover_request_body, :autodiscover_responses, :api_path
attr_reader :servers, :tags
def initialize(**kwargs)
@info = Info.new
@servers = kwargs[:servers] || default_servers
@tags = []
@swagger_version = '3.1.0'
@default_tags_from = "namespace"
- @request_body_automatically = true
+ @autodiscover_request_body = true
@autodiscover_responses = true
+ @api_path = "/"
end
def default_servers
[Server.new(url: "http://localhost:3000", description: "Rails Default Development Server")]
end