Sha256: 4e96d925e5dd1818b5bc48fe4d392b5128e825544fb06c45d0116b1e6cfb9416
Contents?: true
Size: 1.54 KB
Versions: 2
Compression:
Stored size: 1.54 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_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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dox-2.0.0.beta3 | lib/dox/config.rb |
dox-2.0.0.beta2 | lib/dox/config.rb |