Sha256: f10512b1a912d2a8bcf3c37debc1a22bb457990c06dd6c1534b22a68bc2f54e7
Contents?: true
Size: 1.57 KB
Versions: 3
Compression:
Stored size: 1.57 KB
Contents
module Dox class Config attr_reader :schema_request_folder_path attr_reader :schema_response_folder_path attr_reader :schema_response_fail_file_path attr_accessor :headers_whitelist attr_accessor :openapi_version attr_accessor :api_version attr_accessor :title attr_accessor :header_description attr_accessor :groups_order attr_reader :descriptions_location def descriptions_location=(folder_path) raise(Errors::FolderNotFoundError, folder_path) unless Dir.exist?(folder_path) @descriptions_location = folder_path end def schema_request_folder_path=(folder_path) raise(Errors::FolderNotFoundError, folder_path) unless Dir.exist?(folder_path) @schema_request_folder_path = folder_path end def schema_response_folder_path=(folder_path) raise(Errors::FolderNotFoundError, folder_path) unless Dir.exist?(folder_path) @schema_response_folder_path = folder_path end def schema_response_fail_file_path=(file_path) raise(Errors::FileNotFoundError, file_path) unless File.exist?(file_path) @schema_response_fail_file_path = file_path end def desc_folder_path=(folder_path) warn( 'DEPRECATION WARNING: desc_folder_path will be removed in the next release, please use descriptions_location instead' # rubocop:disable Layout/LineLength ) self.descriptions_location = folder_path end def header_file_path=(_file_path) warn('WARNING: header_file_path is no longer used. Move header description to config.header_description.') end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dox-2.2.0 | lib/dox/config.rb |
dox-2.1.0 | lib/dox/config.rb |
dox-2.0.0 | lib/dox/config.rb |