Class: Committee::Drivers::OpenAPI2::Schema

Inherits:
Schema
  • Object
show all
Defined in:
lib/committee/drivers/open_api_2/schema.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Schema

#supports_stub?

Instance Attribute Details

#base_pathObject

Returns the value of attribute base_path.



7
8
9
# File 'lib/committee/drivers/open_api_2/schema.rb', line 7

def base_path
  @base_path
end

#consumesObject

Returns the value of attribute consumes.



8
9
10
# File 'lib/committee/drivers/open_api_2/schema.rb', line 8

def consumes
  @consumes
end

#definitionsObject

Returns the value of attribute definitions.



14
15
16
# File 'lib/committee/drivers/open_api_2/schema.rb', line 14

def definitions
  @definitions
end

#driverObject

A link back to the derivative instance of Committee::Drivers::Driver that create this schema.



12
13
14
# File 'lib/committee/drivers/open_api_2/schema.rb', line 12

def driver
  @driver
end

#producesObject

Returns the value of attribute produces.



15
16
17
# File 'lib/committee/drivers/open_api_2/schema.rb', line 15

def produces
  @produces
end

#routesObject

Returns the value of attribute routes.



16
17
18
# File 'lib/committee/drivers/open_api_2/schema.rb', line 16

def routes
  @routes
end

#validator_optionObject (readonly)

Returns the value of attribute validator_option.



17
18
19
# File 'lib/committee/drivers/open_api_2/schema.rb', line 17

def validator_option
  @validator_option
end

Instance Method Details

#build_router(options) ⇒ Object



19
20
21
22
# File 'lib/committee/drivers/open_api_2/schema.rb', line 19

def build_router(options)
  @validator_option = Committee::SchemaValidator::Option.new(options, self, :hyper_schema)
  Committee::SchemaValidator::HyperSchema::Router.new(self, @validator_option)
end