class Committee::Drivers::OpenAPI3::Schema
Attributes
Public Class Methods
Source
# File lib/committee/drivers/open_api_3/schema.rb, line 13 def initialize(driver, open_api) @open_api = open_api @driver = driver end
@!attribute [r] open_api
@return [OpenAPIParser::Schemas::OpenAPI]
Public Instance Methods
Source
# File lib/committee/drivers/open_api_3/schema.rb, line 26 def build_router(options) @validator_option = Committee::SchemaValidator::Option.new(options, self, :open_api_3) Committee::SchemaValidator::OpenAPI3::Router.new(self, @validator_option) end
Source
# File lib/committee/drivers/open_api_3/schema.rb, line 22 def driver # we don't use attr_reader because this method override super class @driver end
Source
# File lib/committee/drivers/open_api_3/schema.rb, line 32 def operation_object(path, method) request_operation = open_api.request_operation(method, path) return nil unless request_operation Committee::SchemaValidator::OpenAPI3::OperationWrapper.new(request_operation) end
OpenAPI3
only
Source
# File lib/committee/drivers/open_api_3/schema.rb, line 18 def supports_stub? false end