Class: Committee::Drivers::Schema

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

Overview

Schema is a base class for driver schema implementations.

Instance Method Summary collapse

Instance Method Details

#build_router(options) ⇒ Object



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

def build_router(options)
  raise "needs implementation"
end

#driverObject

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



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

def driver
  raise "needs implementation"
end

#supports_stub?Boolean

Stubs are supported in JSON Hyper-Schema and OpenAPI 2, but not yet in OpenAPI 3

Returns:

  • (Boolean)


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

def supports_stub?
  true
end