lib/oas_rails/configuration.rb in oas_rails-0.8.2 vs lib/oas_rails/configuration.rb in oas_rails-0.8.3
- old
+ new
@@ -9,11 +9,13 @@
:ignored_actions,
:security_schemas,
:authenticate_all_routes_by_default,
:set_default_responses,
:possible_default_responses,
- :response_body_of_default
+ :response_body_of_default,
+ :http_verbs,
+ :use_model_names
attr_reader :servers, :tags, :security_schema
def initialize
@info = Spec::Info.new
@layout = false
@@ -28,10 +30,12 @@
@authenticate_all_routes_by_default = true
@security_schema = nil
@security_schemas = {}
@set_default_responses = true
@possible_default_responses = [:not_found, :unauthorized, :forbidden]
+ @http_verbs = [:get, :post, :put, :patch, :delete]
@response_body_of_default = "Hash{ success: !Boolean, message: String }"
+ @use_model_names = false
end
def security_schema=(value)
return unless (security_schema = DEFAULT_SECURITY_SCHEMES[value])