Class: Committee::Drivers::Schema

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

Overview

Schema is a base class for driver schema implementations.

Instance Method Summary collapse

Instance Method Details

#build_router(options) ⇒ Object



114
115
116
# File 'lib/committee/drivers.rb', line 114

def build_router(options)
  raise "needs implementation"
end

#driverObject

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



110
111
112
# File 'lib/committee/drivers.rb', line 110

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)


119
120
121
# File 'lib/committee/drivers.rb', line 119

def supports_stub?
  true
end