Sha256: 52b883c4d38dda42f93aa8e0329f7989f41b6fe33a5e6144a46261d3c2a4169d

Contents?: true

Size: 874 Bytes

Versions: 2

Compression:

Stored size: 874 Bytes

Contents

module SwaggerUiEngine
  module ConfigParser
    def set_doc_expansion
      configuration.doc_expansion || default_doc_expansion
    end

    def set_json_editor
      configuration.json_editor || default_json_editor
    end

    def set_model_rendering
      configuration.model_rendering || default_model_rendering
    end

    def set_request_headers
      configuration.request_headers || default_request_headers
    end

    def set_show_operation_ids
      configuration.show_operation_ids || default_show_operation_ids
    end

    def set_swagger_url
      configuration.swagger_url || default_swagger_url
    end

    def set_validator_url
      validator_enabled ? default_validator_url : 'null'
    end

    def validator_enabled
      configuration.validator_enabled || false
    end

    def configuration
      SwaggerUiEngine.configuration
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
swagger_ui_engine-1.0.2 app/helpers/swagger_ui_engine/config_parser.rb
swagger_ui_engine-1.0.1 app/helpers/swagger_ui_engine/config_parser.rb