Class: Committee::Drivers::OpenAPI2::Schema
- Defined in:
- lib/committee/drivers/open_api_2/schema.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 instance 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.
7 8 9 |
# File 'lib/committee/drivers/open_api_2/schema.rb', line 7 def base_path @base_path end |
#consumes ⇒ Object
Returns the value of attribute consumes.
8 9 10 |
# File 'lib/committee/drivers/open_api_2/schema.rb', line 8 def consumes @consumes end |
#definitions ⇒ Object
Returns the value of attribute definitions.
14 15 16 |
# File 'lib/committee/drivers/open_api_2/schema.rb', line 14 def definitions @definitions end |
#driver ⇒ Object
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 |
#produces ⇒ Object
Returns the value of attribute produces.
15 16 17 |
# File 'lib/committee/drivers/open_api_2/schema.rb', line 15 def produces @produces end |
#routes ⇒ Object
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_option ⇒ Object (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() @validator_option = Committee::SchemaValidator::Option.new(, self, :hyper_schema) Committee::SchemaValidator::HyperSchema::Router.new(self, @validator_option) end |