Module: Committee

Defined in:
lib/committee/bin/committee_stub.rb,
lib/committee.rb,
lib/committee/errors.rb,
lib/committee/drivers.rb,
lib/committee/request_unpacker.rb,
lib/committee/validation_error.rb,
lib/committee/schema_validator/open_api_3/router.rb,
lib/committee/schema_validator/hyper_schema/router.rb,
lib/committee/schema_validator/open_api_3/operation_wrapper.rb,
lib/committee/schema_validator/open_api_3/request_validator.rb,
lib/committee/schema_validator/open_api_3/response_validator.rb,
lib/committee/schema_validator/hyper_schema/parameter_coercer.rb,
lib/committee/schema_validator/hyper_schema/request_validator.rb,
lib/committee/schema_validator/hyper_schema/response_generator.rb,
lib/committee/schema_validator/hyper_schema/response_validator.rb,
lib/committee/schema_validator/hyper_schema/string_params_coercer.rb

Overview

Don’t Support OpenAPI3

Defined Under Namespace

Modules: Bin, Drivers, Middleware, Test Classes: BadRequest, Error, InvalidRequest, InvalidResponse, NotFound, OpenAPI3Unsupported, ReferenceNotFound, RequestUnpacker, SchemaValidator, ValidationError

Class Method Summary collapse

Class Method Details

.debug?Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/committee.rb', line 42

def self.debug?
  ENV["COMMITTEE_DEBUG"]
end

.log_debug(message) ⇒ Object



46
47
48
# File 'lib/committee.rb', line 46

def self.log_debug(message)
  $stderr.puts(message) if debug?
end

.warn_deprecated(message) ⇒ Object



50
51
52
53
54
# File 'lib/committee.rb', line 50

def self.warn_deprecated(message)
  if !$VERBOSE.nil?
    $stderr.puts(message)
  end
end