Class: Committee::Drivers::OpenAPI2::Schema
- Defined in:
- lib/committee/drivers/open_api_2.rb
Instance Attribute Summary collapse
-
#base_path ⇒ Object
Returns the value of attribute base_path.
-
#consumes ⇒ Object
Returns the value of attribute consumes.
-
#definitions ⇒ Object
Returns the value of attribute definitions.
-
#driver ⇒ Object
A link back to the derivative instace of Committee::Drivers::Driver that create this schema.
-
#produces ⇒ Object
Returns the value of attribute produces.
-
#routes ⇒ Object
Returns the value of attribute routes.
-
#validator_option ⇒ Object
readonly
Returns the value of attribute validator_option.
Instance Method Summary collapse
Methods inherited from Schema
Instance Attribute Details
#base_path ⇒ Object
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 |
#consumes ⇒ Object
Returns the value of attribute consumes.
230 231 232 |
# File 'lib/committee/drivers/open_api_2.rb', line 230 def consumes @consumes end |
#definitions ⇒ Object
Returns the value of attribute definitions.
236 237 238 |
# File 'lib/committee/drivers/open_api_2.rb', line 236 def definitions @definitions end |
#driver ⇒ Object
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 |
#produces ⇒ Object
Returns the value of attribute produces.
237 238 239 |
# File 'lib/committee/drivers/open_api_2.rb', line 237 def produces @produces end |
#routes ⇒ Object
Returns the value of attribute routes.
238 239 240 |
# File 'lib/committee/drivers/open_api_2.rb', line 238 def routes @routes end |
#validator_option ⇒ Object (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() @validator_option = Committee::SchemaValidator::Option.new(, self, :hyper_schema) Committee::SchemaValidator::HyperSchema::Router.new(self, @validator_option) end |