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

Inherits:
Schema
  • Object
show all
Defined in:
lib/committee/drivers/open_api_2.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.



229
230
231
# File 'lib/committee/drivers/open_api_2.rb', line 229

def base_path
  @base_path
end

#consumesObject

Returns the value of attribute consumes.



230
231
232
# File 'lib/committee/drivers/open_api_2.rb', line 230

def consumes
  @consumes
end

#definitionsObject

Returns the value of attribute definitions.



236
237
238
# File 'lib/committee/drivers/open_api_2.rb', line 236

def definitions
  @definitions
end

#driverObject

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



234
235
236
# File 'lib/committee/drivers/open_api_2.rb', line 234

def driver
  @driver
end

#producesObject

Returns the value of attribute produces.



237
238
239
# File 'lib/committee/drivers/open_api_2.rb', line 237

def produces
  @produces
end

#routesObject

Returns the value of attribute routes.



238
239
240
# File 'lib/committee/drivers/open_api_2.rb', line 238

def routes
  @routes
end

#validator_optionObject (readonly)

Returns the value of attribute validator_option.



239
240
241
# File 'lib/committee/drivers/open_api_2.rb', line 239

def validator_option
  @validator_option
end

Instance Method Details

#build_router(options) ⇒ Object



241
242
243
244
# File 'lib/committee/drivers/open_api_2.rb', line 241

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