class OasRails::Configuration
def default_servers
def default_servers [Spec::Server.new(url: "http://localhost:3000", description: "Rails Default Development Server")] end
def excluded_columns_incoming
def excluded_columns_incoming %i[id created_at updated_at deleted_at] end
def excluded_columns_outgoing
def excluded_columns_outgoing [] end
def initialize
def initialize @info = Spec::Info.new @layout = false @servers = default_servers @tags = [] @swagger_version = '3.1.0' @default_tags_from = :namespace @autodiscover_request_body = true @autodiscover_responses = true @api_path = "/" @ignored_actions = [] @authenticate_all_routes_by_default = true @security_schema = nil @security_schemas = {} @set_default_responses = true @possible_default_responses = [:not_found, :unauthorized, :forbidden] @response_body_of_default = "Hash{ success: !Boolean, message: String }" end
def security_schema=(value)
def security_schema=(value) return unless (security_schema = DEFAULT_SECURITY_SCHEMES[value]) @security_schemas = { value => security_schema } end
def servers=(value)
def servers=(value) @servers = value.map { |s| Spec::Server.new(url: s[:url], description: s[:description]) } end
def tags=(value)
def tags=(value) @tags = value.map { |t| Spec::Tag.new(name: t[:name], description: t[:description]) } end