Module: Committee
- Defined in:
- lib/committee/middleware/stub.rb,
lib/committee.rb,
lib/committee/utils.rb,
lib/committee/errors.rb,
lib/committee/drivers.rb,
lib/committee/version.rb,
lib/committee/middleware.rb,
lib/committee/test/methods.rb,
lib/committee/drivers/driver.rb,
lib/committee/drivers/schema.rb,
lib/committee/middleware/base.rb,
lib/committee/request_unpacker.rb,
lib/committee/schema_validator.rb,
lib/committee/validation_error.rb,
lib/committee/bin/committee_stub.rb,
lib/committee/drivers/open_api_2.rb,
lib/committee/drivers/open_api_3.rb,
lib/committee/drivers/hyper_schema.rb,
lib/committee/test/schema_coverage.rb,
lib/committee/drivers/open_api_2/link.rb,
lib/committee/schema_validator/option.rb,
lib/committee/drivers/hyper_schema/link.rb,
lib/committee/drivers/open_api_2/driver.rb,
lib/committee/drivers/open_api_2/schema.rb,
lib/committee/drivers/open_api_3/driver.rb,
lib/committee/drivers/open_api_3/schema.rb,
lib/committee/drivers/hyper_schema/driver.rb,
lib/committee/drivers/hyper_schema/schema.rb,
lib/committee/schema_validator/open_api_3.rb,
lib/committee/middleware/request_validation.rb,
lib/committee/schema_validator/hyper_schema.rb,
lib/committee/middleware/response_validation.rb,
lib/committee/drivers/open_api_2/schema_builder.rb,
lib/committee/schema_validator/open_api_3/router.rb,
lib/committee/schema_validator/hyper_schema/router.rb,
lib/committee/drivers/open_api_2/header_schema_builder.rb,
lib/committee/drivers/open_api_2/parameter_schema_builder.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
Defined Under Namespace
Modules: Bin, Drivers, Middleware, SchemaValidator, Test, Utils
Classes: BadRequest, Error, InvalidRequest, InvalidResponse, NotFound, OpenAPI3Unsupported, ReferenceNotFound, RequestUnpacker, ValidationError
Constant Summary
collapse
- VERSION =
'5.4.0'.freeze
Class Method Summary
collapse
Class Method Details
.debug? ⇒ Boolean
12
13
14
|
# File 'lib/committee.rb', line 12
def self.debug?
ENV["COMMITTEE_DEBUG"]
end
|
.log_debug(message) ⇒ Object
16
17
18
|
# File 'lib/committee.rb', line 16
def self.log_debug(message)
$stderr.puts(message) if debug?
end
|
.need_good_option(message) ⇒ Object
20
21
22
|
# File 'lib/committee.rb', line 20
def self.need_good_option(message)
warn(message)
end
|
.warn_deprecated_until_6(cond, message) ⇒ Object
24
25
26
27
|
# File 'lib/committee.rb', line 24
def self.warn_deprecated_until_6(cond, message)
raise "remove deprecated!" unless Committee::VERSION.start_with?("5")
warn("[DEPRECATION] #{message}") if cond
end
|