Module: OpenapiRspec
- Extended by:
- Dry::Configurable
- Defined in:
- lib/openapi_rspec.rb,
lib/openapi_rspec/helpers.rb,
lib/openapi_rspec/version.rb,
lib/openapi_rspec/matchers.rb,
lib/openapi_rspec/schema_loader.rb,
lib/openapi_rspec/module_helpers.rb,
lib/openapi_rspec/request_validator.rb,
lib/openapi_rspec/documentation_validator.rb
Defined Under Namespace
Modules: Helpers, Matchers, ModuleHelpers, SchemaLoader
Classes: DocumentationValidator, RequestValidator
Constant Summary
collapse
- VERSION =
"0.6.0"
Class Method Summary
collapse
Class Method Details
.api(doc, **params) ⇒ Object
18
19
20
|
# File 'lib/openapi_rspec.rb', line 18
def self.api(doc, **params)
OpenapiValidator.call(doc, **params)
end
|
.api_by_path(path, **params) ⇒ Object
22
23
24
25
|
# File 'lib/openapi_rspec.rb', line 22
def self.api_by_path(path, **params)
doc = SchemaLoader.call(path)
api(doc, **params)
end
|